java.lang.Object
cloud.piranha.webapp.impl.WebXml
- All Implemented Interfaces:
Serializable
The web.xml in object format.
- Author:
- Manfred Riem ([email protected])
- See Also:
- Serialized Form
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A class used to deal with before/after ordering.static class
The <security-constraint> snippet inside a web.xml / webfragment.xml. -
Field Summary
Modifier and TypeFieldDescriptionint
Stores the major version.int
Stores the minor version.static String
Stores the others tag.Stores the security constraints -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute ordering.Returns the context params.Returns the default context path.boolean
Get if we are denying uncovered HTTP methods.Returns the display name.Returns the error pages.Returns the filter mappings.Returns the filters.Returns the fragment name.Returns the listeners.Returns the locale encoding mapping.Returns the login config.int
Gets the major version as set by the version attribute in the web app elementboolean
Get the metadata complete flag.Returns the mime mappings.int
Gets the minor version as set by the version attribute in the web app elementReturns the relative ordering.Returns the request character encoding.Returns the response character encoding.Get all the unique role names that have either been explicitly declared, or used in a constraint.Returns the servlet mappings.Returns the servlets.Returns the session config.Get the welcome files.boolean
Is the application distributable.boolean
Is this a web-fragment.void
setAbsoluteOrdering(List<String> absoluteOrdering)
Set the absolute ordering.void
setDefaultContextPath(String defaultContextPath)
Set the default context path.void
setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods)
Set if we are denying uncovered HTTP methods.void
setDisplayName(String displayName)
Set the display name.void
setDistributable(boolean distributable)
Set if we are distributable.void
setFragment(boolean fragment)
Set if we are a fragment.void
setFragmentName(String fragmentName)
Set the fragment name.void
setLocaleEncodingMapping(Map<String,String> localeEncodingMapping)
Set the locale encoding mapping.void
setLoginConfig(WebXmlLoginConfig loginConfig)
Set the login config.void
setMajorVersion(int majorVersion)
Sets the major version as set by the version attribute in the web app elementvoid
setMetadataComplete(boolean metadataComplete)
Set the metadata complete flag.void
setMinorVersion(int minorVersion)
Sets the minor version as set by the version attribute in the web app elementvoid
setRelativeOrdering(WebXml.RelativeOrder relativeOrdering)
Set the relative ordering.void
setRequestCharacterEncoding(String requestCharacterEncoding)
Set the request character encoding.void
setResponseCharacterEncoding(String responseCharacterEncoding)
Set the response character encoding.void
setSessionConfig(WebXmlSessionConfig sessionConfig)
Set the session config.
-
Field Details
-
OTHERS_TAG
Stores the others tag. -
majorVersion
public int majorVersionStores the major version. -
minorVersion
public int minorVersionStores the minor version. -
securityConstraints
Stores the security constraints
-
-
Constructor Details
-
WebXml
public WebXml()
-
-
Method Details
-
getContextParams
Returns the context params.- Returns:
- the context params
-
getDefaultContextPath
Returns the default context path.- Returns:
- the default context path
-
getDenyUncoveredHttpMethods
public boolean getDenyUncoveredHttpMethods()Get if we are denying uncovered HTTP methods.- Returns:
- true if we are, false otherwise.
-
getDisplayName
Returns the display name.- Returns:
- the display name
-
getErrorPages
Returns the error pages.- Returns:
- the error pages
-
getFilters
Returns the filters.- Returns:
- the filters
-
getFilterMappings
Returns the filter mappings.- Returns:
- the filter mappings
-
getFragmentName
Returns the fragment name.- Returns:
- the fragment name
-
getLoginConfig
Returns the login config.- Returns:
- the login config
-
getListeners
Returns the listeners.- Returns:
- the listeners
-
getMimeMappings
Returns the mime mappings.- Returns:
- the mime mappings
-
getRequestCharacterEncoding
Returns the request character encoding.- Returns:
- the request character encoding
-
getResponseCharacterEncoding
Returns the response character encoding.- Returns:
- the response character encoding
-
getRoleNames
Get all the unique role names that have either been explicitly declared, or used in a constraint.- Returns:
- the unique role names that have either been explicitly declared, or used in a constraint.
-
getServlets
Returns the servlets.- Returns:
- the servlets
-
getServletMappings
Returns the servlet mappings.- Returns:
- the servlet mappings
-
getSessionConfig
Returns the session config.- Returns:
- the session config
-
getWelcomeFiles
Get the welcome files.- Returns:
- welcome files.
-
isDistributable
public boolean isDistributable()Is the application distributable.- Returns:
- true if it is, false otherwise.
-
isFragment
public boolean isFragment()Is this a web-fragment.- Returns:
- true if it, false otherwise.
-
setDefaultContextPath
Set the default context path.- Parameters:
defaultContextPath
- the default context path.
-
setDenyUncoveredHttpMethods
public void setDenyUncoveredHttpMethods(boolean denyUncoveredHttpMethods)Set if we are denying uncovered HTTP methods.- Parameters:
denyUncoveredHttpMethods
- the boolean value.
-
setDisplayName
Set the display name.- Parameters:
displayName
- the display name.
-
setDistributable
public void setDistributable(boolean distributable)Set if we are distributable.- Parameters:
distributable
- the boolean value.
-
setFragment
public void setFragment(boolean fragment)Set if we are a fragment.- Parameters:
fragment
- the boolean value.
-
setFragmentName
Set the fragment name.- Parameters:
fragmentName
- the fragment name.
-
setLoginConfig
Set the login config.- Parameters:
loginConfig
- the login config.
-
setRequestCharacterEncoding
Set the request character encoding.- Parameters:
requestCharacterEncoding
- the request character encoding.
-
setResponseCharacterEncoding
Set the response character encoding.- Parameters:
responseCharacterEncoding
- the response character encoding.
-
setSessionConfig
Set the session config.- Parameters:
sessionConfig
- the session comfig.
-
getMajorVersion
public int getMajorVersion()Gets the major version as set by the version attribute in the web app element- Returns:
- the major version.
-
setMajorVersion
public void setMajorVersion(int majorVersion)Sets the major version as set by the version attribute in the web app element- Parameters:
majorVersion
- the major version.
-
getMinorVersion
public int getMinorVersion()Gets the minor version as set by the version attribute in the web app element- Returns:
- the major version.
-
setMinorVersion
public void setMinorVersion(int minorVersion)Sets the minor version as set by the version attribute in the web app element- Parameters:
minorVersion
- the minor version.
-
setMetadataComplete
public void setMetadataComplete(boolean metadataComplete)Set the metadata complete flag.- Parameters:
metadataComplete
- the metadata complete
-
getMetadataComplete
public boolean getMetadataComplete()Get the metadata complete flag.- Returns:
- the metadata complete
-
getAbsoluteOrdering
Returns the absolute ordering.- Returns:
- the absolute ordering
-
getRelativeOrdering
Returns the relative ordering.- Returns:
- the relative ordering
-
setAbsoluteOrdering
Set the absolute ordering.- Parameters:
absoluteOrdering
- the absolute ordering.
-
setRelativeOrdering
Set the relative ordering.- Parameters:
relativeOrdering
- the relative ordering.
-
getLocaleEncodingMapping
Returns the locale encoding mapping.- Returns:
- the locale encoding mapping
-
setLocaleEncodingMapping
Set the locale encoding mapping.- Parameters:
localeEncodingMapping
- the locale encoding mapping.
-