Package org.eclipse.jetty.servlet
Class Source
- java.lang.Object
-
- org.eclipse.jetty.servlet.Source
-
public class Source extends java.lang.Object
Source The source of a web artifact: servlet, filter, mapping etc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Source.Origin
-
Constructor Summary
Constructors Constructor Description Source(Source.Origin o, java.lang.String resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Source.Origin
getOrigin()
java.lang.String
getResource()
java.lang.String
toString()
-
-
-
Field Detail
-
EMBEDDED
public static final Source EMBEDDED
-
JAVAX_API
public static final Source JAVAX_API
-
_origin
public Source.Origin _origin
-
_resource
public java.lang.String _resource
-
-
Constructor Detail
-
Source
public Source(Source.Origin o, java.lang.String resource)
- Parameters:
o
- the Origin of the artifact (servlet, filter, mapping etc)resource
- the location where the artifact was declared
-
-
Method Detail
-
getOrigin
public Source.Origin getOrigin()
- Returns:
- the origin
-
getResource
public java.lang.String getResource()
- Returns:
- the resource
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-