Class Source

java.lang.Object
org.eclipse.jetty.ee10.servlet.Source

public class Source extends Object
Source The source of a web artifact: servlet, filter, mapping etc
  • Field Details

    • EMBEDDED

      public static final Source EMBEDDED
    • JAKARTA_API

      public static final Source JAKARTA_API
    • _origin

      public final Source.Origin _origin
    • _name

      public final String _name
    • _resource

      public Resource _resource
  • Constructor Details

    • Source

      public Source(Source.Origin o)
      A Source without a name/location.
      Parameters:
      o - the Origin of the artifact (servlet, filter, mapping etc)
    • Source

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

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

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

    • getOrigin

      public Source.Origin getOrigin()
      Get the origin.
      Returns:
      the origin
    • getResource

      public Resource getResource()
      Get the resource.
      Returns:
      the resource
    • getName

      public String getName()
      Get the name.
      Returns:
      the name
    • toString

      public String toString()
      Overrides:
      toString in class Object