Package org.eclipse.jetty.servlet
Class ServletMapping
- java.lang.Object
-
- org.eclipse.jetty.servlet.ServletMapping
-
@ManagedObject("Servlet Mapping") public class ServletMapping extends Object
-
-
Constructor Summary
Constructors Constructor Description ServletMapping()ServletMapping(Source source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsPathSpec(String pathSpec)Test if the list of path specs contains a particular one.voiddump(Appendable out, String indent)String[]getPathSpecs()StringgetServletName()SourcegetSource()booleanisDefault()voidsetDefault(boolean fromDefault)voidsetPathSpec(String pathSpec)voidsetPathSpecs(String[] pathSpecs)voidsetServletName(String servletName)StringtoString()
-
-
-
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()
-
dump
public void dump(Appendable out, String indent) throws IOException
- Throws:
IOException
-
-