Package org.eclipse.jetty.servlet
Class ServletMapping
- java.lang.Object
-
- org.eclipse.jetty.servlet.ServletMapping
-
@ManagedObject("Servlet Mapping") public class ServletMapping extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServletMapping()
ServletMapping(Source source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPathSpec(java.lang.String pathSpec)
Test if the list of path specs contains a particular one.void
dump(java.lang.Appendable out, java.lang.String indent)
java.lang.String[]
getPathSpecs()
java.lang.String
getServletName()
Source
getSource()
boolean
isDefault()
void
setDefault(boolean fromDefault)
void
setPathSpec(java.lang.String pathSpec)
void
setPathSpecs(java.lang.String[] pathSpecs)
void
setServletName(java.lang.String servletName)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ServletMapping
public ServletMapping()
-
ServletMapping
public ServletMapping(Source source)
-
-
Method Detail
-
getPathSpecs
@ManagedAttribute(value="url patterns", readonly=true) public java.lang.String[] getPathSpecs()
- Returns:
- Returns the pathSpecs.
-
getServletName
@ManagedAttribute(value="servlet name", readonly=true) public java.lang.String getServletName()
- Returns:
- Returns the servletName.
-
setPathSpecs
public void setPathSpecs(java.lang.String[] pathSpecs)
- Parameters:
pathSpecs
- The pathSpecs to set.
-
containsPathSpec
public boolean containsPathSpec(java.lang.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(java.lang.String pathSpec)
- Parameters:
pathSpec
- The pathSpec to set.
-
setServletName
public void setServletName(java.lang.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()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
- Throws:
java.io.IOException
-
-