java.lang.Object
cloud.piranha.webapp.impl.WebXml
All Implemented Interfaces:
java.io.Serializable

public class WebXml
extends java.lang.Object
implements java.io.Serializable
The web.xml in object format.
Author:
Manfred Riem ([email protected])
See Also:
Serialized Form
  • Field Details

  • Constructor Details

  • Method Details

    • getContextParams

      public java.util.List<WebXmlContextParam> getContextParams()
      Get the context params.
      Returns:
      the context params.
    • getDefaultContextPath

      public java.lang.String getDefaultContextPath()
      Get 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

      public java.lang.String getDisplayName()
      Get the display name.
      Returns:
      the display name.
    • getErrorPages

      public java.util.List<WebXmlErrorPage> getErrorPages()
      Get the error pages.
      Returns:
      the error pages.
    • getFilters

      public java.util.List<WebXmlFilter> getFilters()
      Get the filters.
      Returns:
      the filters.
    • getFilterMappings

      public java.util.List<WebXmlFilterMapping> getFilterMappings()
      Get the filter mappings.
      Returns:
      the filter mappings.
    • getFragmentName

      public java.lang.String getFragmentName()
      Get the fragment name.
      Returns:
      the fragment name.
    • getLoginConfig

      public WebXmlLoginConfig getLoginConfig()
      Get the login config.
      Returns:
      the login config.
    • getListeners

      public java.util.List<WebXmlListener> getListeners()
      Get the listeners.
      Returns:
      the listeners.
    • getMimeMappings

      public java.util.List<WebXmlMimeMapping> getMimeMappings()
      Get the mime mappings.
      Returns:
      the mime mappings.
    • getRequestCharacterEncoding

      public java.lang.String getRequestCharacterEncoding()
      Get the request character encoding.
      Returns:
      the request character encoding.
    • getResponseCharacterEncoding

      public java.lang.String getResponseCharacterEncoding()
      Get the response character encoding.
      Returns:
      the response character encoding.
    • getRoleNames

      public java.util.Set<java.lang.String> 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

      public java.util.List<WebXmlServlet> getServlets()
      Get the servlets.
      Returns:
      the servlets.
    • getServletMappings

      public java.util.List<WebXmlServletMapping> getServletMappings()
      Get the servlet mappings.
      Returns:
      the servlet mappings.
    • getSessionConfig

      public WebXmlSessionConfig getSessionConfig()
      Get the session config.
      Returns:
      the session config.
    • getWelcomeFiles

      public java.util.List<java.lang.String> 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

      public void setDefaultContextPath​(java.lang.String defaultContextPath)
      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

      public void setDisplayName​(java.lang.String displayName)
      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

      public void setFragmentName​(java.lang.String fragmentName)
      Set the fragment name.
      Parameters:
      fragmentName - the fragment name.
    • setLoginConfig

      public void setLoginConfig​(WebXmlLoginConfig loginConfig)
      Set the login config.
      Parameters:
      loginConfig - the login config.
    • setRequestCharacterEncoding

      public void setRequestCharacterEncoding​(java.lang.String requestCharacterEncoding)
      Set the request character encoding.
      Parameters:
      requestCharacterEncoding - the request character encoding.
    • setResponseCharacterEncoding

      public void setResponseCharacterEncoding​(java.lang.String responseCharacterEncoding)
      Set the response character encoding.
      Parameters:
      responseCharacterEncoding - the response character encoding.
    • setSessionConfig

      public void setSessionConfig​(WebXmlSessionConfig sessionConfig)
      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
    • 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