Top Fields Constructors Methods
org.eclipse.jetty.ee10.servlet

public Class ServletMapping

extends Object
Class Inheritance
Annotations
@ManagedObject:Servlet Mapping
Imports
java.io.IOException, java.util.Arrays, org.eclipse.jetty.util.annotation.ManagedAttribute, .ManagedObject

Field Summary

Modifier and TypeField and Description
private boolean
private String[]
private String
private Source

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if path spec matches something in mappings
containsPathSpec
(String
the path spec
pathSpec
)

Test if the list of path specs contains a particular one.

public void
dump(Appendable out, String indent)

public String[]
getPathSpecs()

Returns: Returns the pathSpecs.

public String
getServletName()

Returns: Returns the servletName.

public Source
public boolean
public void
setFromDefaultDescriptor(boolean fromDefault)

public void
setPathSpec(String
The pathSpec to set.
pathSpec
)

public void
setPathSpecs(String[]
The pathSpecs to set.
pathSpecs
)

public void
setServletName(String
The servletName to set.
servletName
)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_defaultback to summary
private boolean _default
_pathSpecsback to summary
private String[] _pathSpecs
_servletNameback to summary
private String _servletName
_sourceback to summary
private Source _source

Constructor Detail

ServletMappingback to summary
public ServletMapping()
ServletMappingback to summary
public ServletMapping(Source source)

Method Detail

containsPathSpecback to summary
public boolean containsPathSpec(String pathSpec)

Test if the list of path specs contains a particular one.

Parameters
pathSpec:String

the path spec

Returns:boolean

true if path spec matches something in mappings

dumpback to summary
public void dump(Appendable out, String indent) throws IOException
getPathSpecsback to summary
public String[] getPathSpecs()
Returns:String[]

Returns the pathSpecs.

Annotations
@ManagedAttribute:url patterns
readonly:true
getServletNameback to summary
public String getServletName()
Returns:String

Returns the servletName.

Annotations
@ManagedAttribute:servlet name
readonly:true
getSourceback to summary
public Source getSource()
isFromDefaultDescriptorback to summary
public boolean isFromDefaultDescriptor()
Annotations
@ManagedAttribute:default
readonly:true
setFromDefaultDescriptorback to summary
public void setFromDefaultDescriptor(boolean fromDefault)
setPathSpecback to summary
public void setPathSpec(String pathSpec)
Parameters
pathSpec:String

The pathSpec to set.

setPathSpecsback to summary
public void setPathSpecs(String[] pathSpecs)
Parameters
pathSpecs:String[]

The pathSpecs to set.

setServletNameback to summary
public void setServletName(String servletName)
Parameters
servletName:String

The servletName to set.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override