|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface Sniffer
A sniffer implementation is responsible for identifying a particular application type and/or a particular file type.
For clients who want to work with Sniffers, see SnifferManager in the kernel.
| Method Summary | |
|---|---|
java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getAnnotationTypes()
Returns the list of annotations types that this sniffer is interested in. |
java.lang.String[] |
getContainersNames()
Returns the list of Containers that this Sniffer enables. |
java.util.Map<java.lang.String,java.lang.String> |
getDeploymentConfigurations(ReadableArchive source)
Returns a map of deployment configurations for this Sniffer from the specific archive source. |
java.lang.String[] |
getIncompatibleSnifferTypes()
|
java.lang.String |
getModuleType()
Returns the module type associated with this sniffer |
java.lang.String[] |
getURLPatterns()
Returns the array of patterns 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 source,
java.lang.ClassLoader loader)
Returns true if the passed file or directory is recognized by this sniffer. |
boolean |
isUserVisible()
|
com.sun.enterprise.module.Module[] |
setup(java.lang.String containerHome,
java.util.logging.Logger logger)
Sets up the container libraries so that any imported bundle from the connector jar file will now be known to the module subsystem This method returns a Modules for the module containing
the core implementation of the container. |
void |
tearDown()
Tears down a container, remove all imported libraries from the module subsystem. |
| Method Detail |
|---|
boolean handles(ReadableArchive source,
java.lang.ClassLoader loader)
source - the file or directory abstracted as an archiveloader - if the class loader capable of loading classes and
resources from the source archive.
java.lang.String[] getURLPatterns()
java.lang.Class<? extends java.lang.annotation.Annotation>[] getAnnotationTypes()
java.lang.String getModuleType()
com.sun.enterprise.module.Module[] setup(java.lang.String containerHome,
java.util.logging.Logger logger)
throws java.io.IOException
Modules for the module containing
the core implementation of the container. That means that this module
will be locked as long as there is at least one module loaded in the
associated container.
containerHome - is where the container implementation resideslogger - the logger to use
java.io.IOException - exception if something goes sourvoid tearDown()
java.lang.String[] getContainersNames()
boolean isUserVisible()
java.util.Map<java.lang.String,java.lang.String> getDeploymentConfigurations(ReadableArchive source)
throws java.io.IOException
Many sniffers (esp. Java EE sniffers) will choose to set the key of each map entry to the relative path within the ReadableArchive of the deployment descriptor and the value of that map entry to the descriptor's contents.
source - the contents of the application's archive
java.io.IOException - in case of errors searching or reading the
archive for the deployment configuration(s)java.lang.String[] getIncompatibleSnifferTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||