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

public Class Source

extends Object
Class Inheritance
Imports
org.eclipse.jetty.util.resource.Resource

Source The source of a web artifact: servlet, filter, mapping etc

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
public final String
public final Source.Origin
public Resource
public static final Source
public static final Source

Constructor Summary

AccessConstructor and Description
public
Source(Source.Origin
the Origin of the artifact (servlet, filter, mapping etc)
o
)

A Source without a name/location.

public
Source(Source.Origin
the Origin of the artifact (servlet, filter, mapping etc)
o
,
Class<?>
the class where the artifact was declared
clazz
)

public
Source(Source.Origin
the Origin of the artifact (servlet, filter, mapping etc)
o
,
Resource
the location where the artifact was declared
resource
)

public
Source(Source.Origin
the Origin of the artifact (servlet, filter, mapping etc)
o
,
String
the name of the location where the artifact was declared (not a Resource)
name
)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name
getName
()

Get the name.

public Source.Origin

Returns:

the origin
getOrigin
()

Get the origin.

public Resource

Returns:

the resource
getResource
()

Get the resource.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_nameback to summary
public final String _name
_originback to summary
public final Source.Origin _origin
_resourceback to summary
public Resource _resource
EMBEDDEDback to summary
public static final Source EMBEDDED
JAKARTA_APIback to summary
public static final Source JAKARTA_API

Constructor Detail

Sourceback to summary
public Source(Source.Origin o)

A Source without a name/location.

Parameters
o:Source.Origin

the Origin of the artifact (servlet, filter, mapping etc)

Sourceback to summary
public Source(Source.Origin o, Class<?> clazz)
Parameters
o:Source.Origin

the Origin of the artifact (servlet, filter, mapping etc)

clazz:Class<?>

the class where the artifact was declared

Sourceback to summary
public Source(Source.Origin o, Resource resource)
Parameters
o:Source.Origin

the Origin of the artifact (servlet, filter, mapping etc)

resource:Resource

the location where the artifact was declared

Sourceback to summary
public Source(Source.Origin o, String name)
Parameters
o:Source.Origin

the Origin of the artifact (servlet, filter, mapping etc)

name:String

the name of the location where the artifact was declared (not a Resource)

Method Detail

getNameback to summary
public String getName()

Get the name.

Returns:String

the name

getOriginback to summary
public Source.Origin getOrigin()

Get the origin.

Returns:Source.Origin

the origin

getResourceback to summary
public Resource getResource()

Get the resource.

Returns:Resource

the resource

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
org.eclipse.jetty.ee10.servlet back to summary

public final Enum Source.Origin

extends Enum<Source.Origin>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Source.Origin
public static final Source.Origin
public static final Source.Origin
public static final Source.Origin

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Source.Origin
public static Source.Origin[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ANNOTATIONback to summary
public static final Source.Origin ANNOTATION
DESCRIPTORback to summary
public static final Source.Origin DESCRIPTOR
EMBEDDEDback to summary
public static final Source.Origin EMBEDDED
JAKARTA_APIback to summary
public static final Source.Origin JAKARTA_API

Constructor Detail

Originback to summary
private Origin()

Method Detail

valueOfback to summary
public static Source.Origin valueOf(String name)
valuesback to summary
public static Source.Origin[] values()