public class WebComponentDescriptorImpl extends WebComponentDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_AUTHENTICATION
Constant for Basic authentication.
|
static String |
DELETE
Constant for the http DELETE method.
|
static String |
FORM_AUTHENTICATION
Constant for Form authentication.
|
static String |
GET
Constant for the htpp GET method.
|
static String |
POST
Constant for the http POST method.
|
static String |
PUT
Constant for the http PUT method.
|
static String |
SSL_AUTHENTICATION
Constant for Secure authentication.
|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
Constructor and Description |
---|
WebComponentDescriptorImpl()
The default constructor.
|
WebComponentDescriptorImpl(WebComponentDescriptor other)
The copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(WebComponentDescriptor other) |
void |
add(WebComponentDescriptor other,
boolean combineUrlPatterns,
boolean combineConflict)
this method will combine the information from this "other" // WebComponentDescriptor with current
WebComponentDescriptor // // when there are conflicts between the contents of the two, // the value from current
WebComponentDescriptor will override // the value in "other" // // Note: in the Set API, we only add value when such
value // is not existed in the Set already // // If combineUrlPatterns is false, then the first one take priority, //
otherwise take the second one.
|
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(String urlPattern)
Adds an alias to this web component.
|
boolean |
equals(Object other) |
Application |
getApplication() |
String |
getCanonicalName()
The canonical name for the web component.
|
Set<String> |
getConflictedInitParameterNames() |
InitializationParameter |
getInitializationParameterByName(String name) |
Enumeration<InitializationParameter> |
getInitializationParameters() |
Set<InitializationParameter> |
getInitializationParameterSet() |
Integer |
getLoadOnStartUp() |
MultipartConfig |
getMultipartConfig() |
RunAsIdentityDescriptor |
getRunAsIdentity()
Gets the run-as of the referee EJB.
|
SecurityRoleReference |
getSecurityRoleReferenceByName(String roleReferenceName) |
Enumeration<SecurityRoleReference> |
getSecurityRoleReferences() |
Set<SecurityRoleReference> |
getSecurityRoleReferenceSet() |
Enumeration<String> |
getUrlPatterns() |
Set<String> |
getUrlPatternsSet() |
Method[] |
getUserDefinedHttpMethods()
This method return an array of user defined http doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace methods.
|
boolean |
getUsesCallerIdentity() |
WebBundleDescriptor |
getWebBundleDescriptor() |
String |
getWebComponentImplementation() |
int |
hashCode() |
Boolean |
isAsyncSupported() |
boolean |
isConflict() |
boolean |
isConflict(WebComponentDescriptor other,
boolean allowNullImplNameOverride) |
boolean |
isEnabled() |
boolean |
isServlet() |
void |
print(StringBuilder toStringBuilder)
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(String urlPattern)
Removes a URL pattern from this web component.
|
void |
setAsyncSupported(Boolean asyncSupported) |
void |
setCanonicalName(String canonicalName)
Sets the canonical name of this web component.
|
void |
setConflict(boolean conflict) |
void |
setEnabled(boolean enabled) |
void |
setLoadOnStartUp(Integer loadOnStartUp)
Sets the order on which this component will be loaded by the web server.
|
void |
setLoadOnStartUp(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 |
setWebBundleDescriptor(WebBundleDescriptor webBundleDescriptor) |
void |
setWebComponentImplementation(String implFile)
sets the implementation file for this web component, the implementation file is either a servlet class name of a jsp
file name.
|
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static final String BASIC_AUTHENTICATION
public static final String FORM_AUTHENTICATION
public static final String SSL_AUTHENTICATION
public static final String GET
public static final String PUT
public static final String POST
public static final String DELETE
public WebComponentDescriptorImpl()
public WebComponentDescriptorImpl(WebComponentDescriptor other)
public Set<InitializationParameter> getInitializationParameterSet()
getInitializationParameterSet
in class WebComponentDescriptor
public Enumeration<InitializationParameter> getInitializationParameters()
getInitializationParameters
in class WebComponentDescriptor
public InitializationParameter getInitializationParameterByName(String name)
getInitializationParameterByName
in class WebComponentDescriptor
name
- public void addInitializationParameter(InitializationParameter initializationParameter)
addInitializationParameter
in class WebComponentDescriptor
initializationParameter
- public void removeInitializationParameter(InitializationParameter initializationParameter)
removeInitializationParameter
in class WebComponentDescriptor
initializationParameter
- public Set<String> getConflictedInitParameterNames()
getConflictedInitParameterNames
in class WebComponentDescriptor
public Set<String> getUrlPatternsSet()
getUrlPatternsSet
in class WebComponentDescriptor
public Enumeration<String> getUrlPatterns()
getUrlPatterns
in class WebComponentDescriptor
public void addUrlPattern(String urlPattern)
addUrlPattern
in class WebComponentDescriptor
urlPattern
- public void removeUrlPattern(String urlPattern)
removeUrlPattern
in class WebComponentDescriptor
urlPattern
- public void setWebBundleDescriptor(WebBundleDescriptor webBundleDescriptor)
setWebBundleDescriptor
in class WebComponentDescriptor
public WebBundleDescriptor getWebBundleDescriptor()
getWebBundleDescriptor
in class WebComponentDescriptor
public String getCanonicalName()
getCanonicalName
in class WebComponentDescriptor
public void setCanonicalName(String canonicalName)
setCanonicalName
in class WebComponentDescriptor
canonicalName
- public Integer getLoadOnStartUp()
getLoadOnStartUp
in class WebComponentDescriptor
public void setLoadOnStartUp(Integer loadOnStartUp)
setLoadOnStartUp
in class WebComponentDescriptor
loadOnStartUp
- public void setLoadOnStartUp(String loadOnStartUp) throws NumberFormatException
setLoadOnStartUp
in class WebComponentDescriptor
loadOnStartUp
- NumberFormatException
public Set<SecurityRoleReference> getSecurityRoleReferenceSet()
getSecurityRoleReferenceSet
in class WebComponentDescriptor
public Enumeration<SecurityRoleReference> getSecurityRoleReferences()
getSecurityRoleReferences
in class WebComponentDescriptor
public SecurityRoleReference getSecurityRoleReferenceByName(String roleReferenceName)
getSecurityRoleReferenceByName
in class WebComponentDescriptor
roleReferenceName
- public void addSecurityRoleReference(SecurityRoleReference securityRoleReference)
addSecurityRoleReference
in class WebComponentDescriptor
securityRoleReference
- public void removeSecurityRoleReference(SecurityRoleReference securityRoleReference)
removeSecurityRoleReference
in class WebComponentDescriptor
securityRoleReference
- public void setRunAsIdentity(RunAsIdentityDescriptor runAs)
setRunAsIdentity
in class WebComponentDescriptor
runAs
- the value of run-aspublic RunAsIdentityDescriptor getRunAsIdentity()
getRunAsIdentity
in class WebComponentDescriptor
public boolean getUsesCallerIdentity()
getUsesCallerIdentity
in class WebComponentDescriptor
public void setUsesCallerIdentity(boolean isCallerID)
setUsesCallerIdentity
in class WebComponentDescriptor
public MultipartConfig getMultipartConfig()
getMultipartConfig
in class WebComponentDescriptor
public void setMultipartConfig(MultipartConfig multipartConfig)
setMultipartConfig
in class WebComponentDescriptor
public void setMultipartConfig(MultipartConfigDescriptor multipartConfigDesc)
multipartConfigDesc
- public Application getApplication()
getApplication
in class WebComponentDescriptor
public void setWebComponentImplementation(String implFile)
setWebComponentImplementation
in class WebComponentDescriptor
implFile
- the servlet class name or the jsp filepublic String getWebComponentImplementation()
getWebComponentImplementation
in class WebComponentDescriptor
public boolean isServlet()
isServlet
in class WebComponentDescriptor
public void setServlet(boolean isServlet)
setServlet
in class WebComponentDescriptor
public boolean isEnabled()
isEnabled
in class WebComponentDescriptor
public void setEnabled(boolean enabled)
setEnabled
in class WebComponentDescriptor
public void setAsyncSupported(Boolean asyncSupported)
setAsyncSupported
in class WebComponentDescriptor
public Boolean isAsyncSupported()
isAsyncSupported
in class WebComponentDescriptor
public void setConflict(boolean conflict)
setConflict
in class WebComponentDescriptor
public boolean isConflict()
isConflict
in class WebComponentDescriptor
public Method[] getUserDefinedHttpMethods()
getUserDefinedHttpMethods
in class WebComponentDescriptor
public void print(StringBuilder toStringBuilder)
print
in class Descriptor
toStringBuilder
- public boolean equals(Object other)
equals
in class WebComponentDescriptor
public int hashCode()
hashCode
in class WebComponentDescriptor
public void add(WebComponentDescriptor other)
add
in class WebComponentDescriptor
public void add(WebComponentDescriptor other, boolean combineUrlPatterns, boolean combineConflict)
add
in class WebComponentDescriptor
other
- combineUrlPatterns
- combineConflict
- public boolean isConflict(WebComponentDescriptor other, boolean allowNullImplNameOverride)
isConflict
in class WebComponentDescriptor
Copyright © 2020. All rights reserved.