org.apache.catalina.util

Class Extension

public final class Extension extends Object

Utility class that represents either an available "Optional Package" (formerly known as "Standard Extension") as described in the manifest of a JAR file, or the requirement for such an optional package. It is used to support the requirements of the Servlet Specification, version 2.3, related to providing shared extensions to all webapps.

In addition, static utility methods are available to scan a manifest and return an array of either available or required optional modules documented in that manifest.

For more information about optional packages, see the document Optional Package Versioning in the documentation bundle for your Java2 Standard Edition package, in file guide/extensions/versioning.html.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig McClanahan Justyna Horwat Greg Murray

Method Summary
StringgetExtensionName()
StringgetImplementationURL()
StringgetImplementationVendor()
StringgetImplementationVendorId()
StringgetImplementationVersion()
StringgetSpecificationVendor()
StringgetSpecificationVersion()
booleanisCompatibleWith(Extension required)
Return true if the specified Extension (which represents an optional package required by this application) is satisfied by this Extension (which represents an optional package that is already installed.
booleanisFulfilled()
voidsetExtensionName(String extensionName)
voidsetFulfilled(boolean fulfilled)
voidsetImplementationURL(String implementationURL)
voidsetImplementationVendor(String implementationVendor)
voidsetImplementationVendorId(String implementationVendorId)
voidsetImplementationVersion(String implementationVersion)
voidsetSpecificationVendor(String specificationVendor)
voidsetSpecificationVersion(String specificationVersion)
StringtoString()
Return a String representation of this object.

Method Detail

getExtensionName

public String getExtensionName()

getImplementationURL

public String getImplementationURL()

getImplementationVendor

public String getImplementationVendor()

getImplementationVendorId

public String getImplementationVendorId()

getImplementationVersion

public String getImplementationVersion()

getSpecificationVendor

public String getSpecificationVendor()

getSpecificationVersion

public String getSpecificationVersion()

isCompatibleWith

public boolean isCompatibleWith(Extension required)
Return true if the specified Extension (which represents an optional package required by this application) is satisfied by this Extension (which represents an optional package that is already installed. Otherwise, return false.

Parameters: required Extension of the required optional package

isFulfilled

public boolean isFulfilled()

setExtensionName

public void setExtensionName(String extensionName)

setFulfilled

public void setFulfilled(boolean fulfilled)

setImplementationURL

public void setImplementationURL(String implementationURL)

setImplementationVendor

public void setImplementationVendor(String implementationVendor)

setImplementationVendorId

public void setImplementationVendorId(String implementationVendorId)

setImplementationVersion

public void setImplementationVersion(String implementationVersion)

setSpecificationVendor

public void setSpecificationVendor(String specificationVendor)

setSpecificationVersion

public void setSpecificationVersion(String specificationVersion)

toString

public String toString()
Return a String representation of this object.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.