@Service(name="web") @Singleton public class WebSniffer extends GenericSniffer
habitat, modulesRegistry| Constructor and Description |
|---|
WebSniffer() |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
getContainerModuleNames() |
String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables.
|
protected List<String> |
getDeploymentConfigurationPaths()
Returns the web-oriented descriptor paths that might exist in a web
app.
|
String[] |
getIncompatibleSnifferTypes() |
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(DeploymentContext context)
Returns true if the passed file or directory is recognized by this
sniffer.
|
boolean |
handles(ReadableArchive location)
Returns true if the passed file or directory is recognized by this
instance.
|
boolean |
isJavaEE() |
boolean |
isUserVisible() |
boolean |
supportsArchiveType(ArchiveType archiveType)
This API is used to help determine if the sniffer should recognize
the current archive.
|
equals, getAnnotationNames, getAnnotationTypes, getDeploymentConfigurations, getModuleType, hashCode, setup, tearDownpublic String[] getURLPatterns()
GenericSniffergetURLPatterns in interface SniffergetURLPatterns in class GenericSnifferpublic boolean handles(DeploymentContext context)
handles in interface Snifferhandles in class GenericSniffercontext - deployment contextpublic boolean handles(ReadableArchive location)
handles in interface Snifferhandles in class GenericSnifferlocation - the file or directory to explorepublic String[] getContainersNames()
Snifferpublic boolean isUserVisible()
isUserVisible in interface SnifferisUserVisible in class GenericSnifferpublic boolean isJavaEE()
isJavaEE in interface SnifferisJavaEE in class GenericSnifferprotected List<String> getDeploymentConfigurationPaths()
getDeploymentConfigurationPaths in class GenericSnifferpublic String[] getIncompatibleSnifferTypes()
getIncompatibleSnifferTypes in interface SniffergetIncompatibleSnifferTypes in class GenericSnifferpublic boolean supportsArchiveType(ArchiveType archiveType)
archiveType - the archive type to checkprotected String[] getContainerModuleNames()
getContainerModuleNames in class GenericSnifferCopyright © 2019. All rights reserved.