@Service(name="webservices") @Singleton public class WebServicesSniffer extends GenericSniffer
habitat, modulesRegistry
Constructor and Description |
---|
WebServicesSniffer() |
Modifier and Type | Method and Description |
---|---|
Class<? extends Annotation>[] |
getAnnotationTypes()
Returns the list of annotations types that this sniffer is interested in.
|
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
String[] |
getURLPatterns()
Returns the pattern to apply against the request URL
If the pattern matches the URL, the service method of the associated
container will be invoked
|
boolean |
handles(ReadableArchive location)
.ear (the resource can be present in lib dir of the ear)
Returns true if the archive contains webservices.xml either in WEB-INF or META-INF directories
|
boolean |
isUserVisible() |
boolean |
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize
the current archive.
|
equals, getAnnotationNames, getContainerModuleNames, getDeploymentConfigurationPaths, getDeploymentConfigurations, getIncompatibleSnifferTypes, getModuleType, handles, hashCode, isJavaEE, setup, tearDown
public boolean handles(ReadableArchive location)
handles
in interface Sniffer
handles
in class GenericSniffer
location
- the file or directory to explorepublic String[] getContainersNames()
Sniffer
public Class<? extends Annotation>[] getAnnotationTypes()
GenericSniffer
getAnnotationTypes
in interface Sniffer
getAnnotationTypes
in class GenericSniffer
public boolean isUserVisible()
isUserVisible
in interface Sniffer
isUserVisible
in class GenericSniffer
public String[] getURLPatterns()
GenericSniffer
getURLPatterns
in interface Sniffer
getURLPatterns
in class GenericSniffer
public boolean supportsArchiveType(ArchiveType archiveType)
archiveType
- the archive type to checkCopyright © 2019. All rights reserved.