Class ServletMapping


  • @ManagedObject("Servlet Mapping")
    public class ServletMapping
    extends Object
    • Constructor Detail

      • ServletMapping

        public ServletMapping()
      • ServletMapping

        public ServletMapping​(Source source)
    • Method Detail

      • getPathSpecs

        @ManagedAttribute(value="url patterns",
                          readonly=true)
        public String[] getPathSpecs()
        Returns:
        Returns the pathSpecs.
      • getServletName

        @ManagedAttribute(value="servlet name",
                          readonly=true)
        public String getServletName()
        Returns:
        Returns the servletName.
      • setPathSpecs

        public void setPathSpecs​(String[] pathSpecs)
        Parameters:
        pathSpecs - The pathSpecs to set.
      • containsPathSpec

        public boolean containsPathSpec​(String pathSpec)
        Test if the list of path specs contains a particular one.
        Parameters:
        pathSpec - the path spec
        Returns:
        true if path spec matches something in mappings
      • setPathSpec

        public void setPathSpec​(String pathSpec)
        Parameters:
        pathSpec - The pathSpec to set.
      • setServletName

        public void setServletName​(String servletName)
        Parameters:
        servletName - The servletName to set.
      • isDefault

        @ManagedAttribute(value="default",
                          readonly=true)
        public boolean isDefault()
      • setDefault

        public void setDefault​(boolean fromDefault)
      • getSource

        public Source getSource()