Package org.glassfish.web.sniffer
Class WarDetector
- java.lang.Object
-
- org.glassfish.web.sniffer.WarDetector
-
- All Implemented Interfaces:
org.glassfish.api.deployment.archive.ArchiveDetector
@Service(name="war") @Singleton public class WarDetector extends Object implements org.glassfish.api.deployment.archive.ArchiveDetector
Detects war type archives. It's rank can be set using system propertyWAR_DETECTOR_RANK_PROP. Default rank isDEFAULT_WAR_DETECTOR_RANK.- Author:
- Sanjeeb.Sahoo@Sun.COM
-
-
Field Summary
Fields Modifier and Type Field Description static StringARCHIVE_TYPEstatic intDEFAULT_WAR_DETECTOR_RANKstatic StringWAR_DETECTOR_RANK_PROP
-
Constructor Summary
Constructors Constructor Description WarDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.api.deployment.archive.ArchiveHandlergetArchiveHandler()org.glassfish.api.deployment.archive.ArchiveTypegetArchiveType()booleanhandles(org.glassfish.api.deployment.archive.ReadableArchive archive)intrank()
-
-
-
Field Detail
-
WAR_DETECTOR_RANK_PROP
public static final String WAR_DETECTOR_RANK_PROP
- See Also:
- Constant Field Values
-
DEFAULT_WAR_DETECTOR_RANK
public static final int DEFAULT_WAR_DETECTOR_RANK
- See Also:
- Constant Field Values
-
ARCHIVE_TYPE
public static final String ARCHIVE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
rank
public int rank()
- Specified by:
rankin interfaceorg.glassfish.api.deployment.archive.ArchiveDetector
-
handles
public boolean handles(org.glassfish.api.deployment.archive.ReadableArchive archive)
- Specified by:
handlesin interfaceorg.glassfish.api.deployment.archive.ArchiveDetector
-
getArchiveHandler
public org.glassfish.api.deployment.archive.ArchiveHandler getArchiveHandler()
- Specified by:
getArchiveHandlerin interfaceorg.glassfish.api.deployment.archive.ArchiveDetector
-
getArchiveType
public org.glassfish.api.deployment.archive.ArchiveType getArchiveType()
- Specified by:
getArchiveTypein interfaceorg.glassfish.api.deployment.archive.ArchiveDetector
-
-