Class ServletMapping

java.lang.Object
org.eclipse.jetty.ee10.servlet.ServletMapping

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

    • ServletMapping

      public ServletMapping()
    • ServletMapping

      public ServletMapping(Source source)
  • Method Details

    • 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.
    • isFromDefaultDescriptor

      @ManagedAttribute(value="default", readonly=true) public boolean isFromDefaultDescriptor()
    • setFromDefaultDescriptor

      public void setFromDefaultDescriptor(boolean fromDefault)
    • getSource

      public Source getSource()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • dump

      public void dump(Appendable out, String indent) throws IOException
      Throws:
      IOException