|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.WebComponentDescriptor
public class WebComponentDescriptor
Common data and behavior of the deployment information about a JSP or JavaServlet in J2EE.
| Field Summary | |
|---|---|
static java.lang.String |
BASIC_AUTHENTICATION
Constant for Basic authentication. |
static java.lang.String |
DELETE
Constant for the http DELET method. |
static java.lang.String |
FORM_AUTHENTICATION
Constant for Form authentication. |
static java.lang.String |
GET
Constant for the htpp GET method. |
static java.lang.String |
POST
Constant for the http POST method. |
static java.lang.String |
PUT
Constant for the http PUT method. |
static java.lang.String |
SSL_AUTHENTICATION
Constant for Secure authentication. |
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
WebComponentDescriptor()
The default constructor. |
|
WebComponentDescriptor(WebComponentDescriptor other)
The copy constructor. |
|
| Method Summary | |
|---|---|
void |
add(WebComponentDescriptor other)
|
void |
addInitializationParameter(InitializationParameter initializationParameter)
Adds a servlet initialization parameter to this component. |
void |
addSecurityRoleReference(SecurityRoleReference securityRoleReference)
Adds a security role reference to this web component. |
void |
addUrlPattern(java.lang.String urlPattern)
Adds an alias to this web component. |
boolean |
equals(java.lang.Object other)
|
Application |
getApplication()
|
java.lang.String |
getCanonicalName()
The canonical name for the web component. |
InitializationParameter |
getInitializationParameterByName(java.lang.String name)
|
java.util.Enumeration<InitializationParameter> |
getInitializationParameters()
|
java.lang.Integer |
getLoadOnStartUp()
|
MultipartConfig |
getMultipartConfig()
|
RunAsIdentityDescriptor |
getRunAsIdentity()
Gets the run-as of the referee EJB. |
SecurityRoleReference |
getSecurityRoleReferenceByName(java.lang.String roleReferenceName)
|
java.util.Enumeration<SecurityRoleReference> |
getSecurityRoleReferences()
|
java.util.Enumeration<java.lang.String> |
getUrlPatterns()
|
java.util.Set<java.lang.String> |
getUrlPatternsSet()
|
java.lang.reflect.Method[] |
getUserDefinedHttpMethods()
This method return an array of user defined http doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace methods. |
boolean |
getUsesCallerIdentity()
|
WebBundleDescriptor |
getWebBundleDescriptor()
|
java.lang.String |
getWebComponentImplementation()
|
int |
hashCode()
|
java.lang.Boolean |
isAsyncSupported()
|
boolean |
isEnabled()
|
boolean |
isServlet()
|
void |
print(java.lang.StringBuffer toStringBuffer)
A formatted string representing my state. |
void |
removeInitializationParameter(InitializationParameter initializationParameter)
Removes the given servlet initialization parameter from this component. |
void |
removeSecurityRoleReference(SecurityRoleReference securityRoleReference)
Removes the given security role reference from this web component. |
void |
removeUrlPattern(java.lang.String urlPattern)
Removes a URL pattern from this web component. |
void |
setAsyncSupported(java.lang.Boolean asyncSupported)
|
void |
setCanonicalName(java.lang.String canonicalName)
Sets the canonical name of this web component. |
void |
setEnabled(boolean enabled)
|
void |
setLoadOnStartUp(java.lang.Integer loadOnStartUp)
Sets the order on which this component will be loaded by the web server. |
void |
setLoadOnStartUp(java.lang.String loadOnStartUp)
Sets the order on which this component will be loaded by the web server. |
void |
setMultipartConfig(MultipartConfig multipartConfig)
|
void |
setMultipartConfig(MultipartConfigDescriptor multipartConfigDesc)
DeploymentDescriptorNode.addNodeDescriptor(node) need this. |
void |
setRunAsIdentity(RunAsIdentityDescriptor runAs)
Sets the run-as of the referee EJB. |
void |
setServlet(boolean isServlet)
|
void |
setUsesCallerIdentity(boolean isCallerID)
|
void |
setWebComponentImplementation(java.lang.String implFile)
sets the implementation file for this web component, the implementation file is either a servlet class name of a jsp file name. |
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BASIC_AUTHENTICATION
public static final java.lang.String FORM_AUTHENTICATION
public static final java.lang.String SSL_AUTHENTICATION
public static final java.lang.String GET
public static final java.lang.String PUT
public static final java.lang.String POST
public static final java.lang.String DELETE
| Constructor Detail |
|---|
public WebComponentDescriptor()
public WebComponentDescriptor(WebComponentDescriptor other)
| Method Detail |
|---|
public java.util.Enumeration<InitializationParameter> getInitializationParameters()
public InitializationParameter getInitializationParameterByName(java.lang.String name)
public void addInitializationParameter(InitializationParameter initializationParameter)
public void removeInitializationParameter(InitializationParameter initializationParameter)
public java.util.Set<java.lang.String> getUrlPatternsSet()
public java.util.Enumeration<java.lang.String> getUrlPatterns()
public void addUrlPattern(java.lang.String urlPattern)
public void removeUrlPattern(java.lang.String urlPattern)
public WebBundleDescriptor getWebBundleDescriptor()
public java.lang.String getCanonicalName()
public void setCanonicalName(java.lang.String canonicalName)
public java.lang.Integer getLoadOnStartUp()
public void setLoadOnStartUp(java.lang.Integer loadOnStartUp)
public void setLoadOnStartUp(java.lang.String loadOnStartUp)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic java.util.Enumeration<SecurityRoleReference> getSecurityRoleReferences()
public SecurityRoleReference getSecurityRoleReferenceByName(java.lang.String roleReferenceName)
public void addSecurityRoleReference(SecurityRoleReference securityRoleReference)
public void removeSecurityRoleReference(SecurityRoleReference securityRoleReference)
public void setRunAsIdentity(RunAsIdentityDescriptor runAs)
runAs - the value of run-aspublic RunAsIdentityDescriptor getRunAsIdentity()
public boolean getUsesCallerIdentity()
public void setUsesCallerIdentity(boolean isCallerID)
public MultipartConfig getMultipartConfig()
public void setMultipartConfig(MultipartConfig multipartConfig)
public void setMultipartConfig(MultipartConfigDescriptor multipartConfigDesc)
public Application getApplication()
public void setWebComponentImplementation(java.lang.String implFile)
implFile - the servlet class name or the jsp filepublic java.lang.String getWebComponentImplementation()
public boolean isServlet()
public void setServlet(boolean isServlet)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void setAsyncSupported(java.lang.Boolean asyncSupported)
public java.lang.Boolean isAsyncSupported()
public java.lang.reflect.Method[] getUserDefinedHttpMethods()
public void print(java.lang.StringBuffer toStringBuffer)
print in class Descriptorpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void add(WebComponentDescriptor other)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||