public class DefaultArtifactFilter extends Object implements ArtifactFilter
ArtifactFilter that includes only those files
that are likely to be understood by the S-RAMP server (XML, Schema, WSDL, etc). This
class can serve as either a reasonable default or as a good starting point for a more
nuanced implementation.| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
validExtensions |
| Constructor and Description |
|---|
DefaultArtifactFilter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(CandidateArtifact artifact)
Called to determine if a given artifact from the source archive should be included
in the target S-RAMP archive.
|
Set<String> |
getValidExtensions()
Returns the
Set of valid extensions. |
void |
setContext(ZipToSrampArchiveContext context)
Called prior to creating the s-ramp archive.
|
public void setContext(ZipToSrampArchiveContext context)
ArtifactFiltersetContext in interface ArtifactFilterArtifactFilter.setContext(org.overlord.sramp.atom.archive.expand.ZipToSrampArchiveContext)public boolean accepts(CandidateArtifact artifact)
ArtifactFilteraccepts in interface ArtifactFilterorg.overlord.sramp.atom.archive.jar.client.jar.ArtifactFilter#accepts(org.overlord.sramp.atom.archive.jar.client.jar.CandidateArtifact)Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.