Uses of Class
org.glassfish.jersey.server.model.Resource
Package
Description
Jersey server-side classes.
Jersey server-side internal resource routing classes.
Jersey server-side application & resource modeling classes.
Jersey server-side WADL support public classes and interfaces.
Jersey server-side WADL internal classes.
Jersey server-side WADL internal classes supporting
wadl generators
.Jersey server-side WADL internal classes supporting
generation of resource documentation with
wadl generators
.-
Uses of Resource in org.glassfish.jersey.server
Modifier and TypeMethodDescriptionExtendedUriInfo.getMatchedModelResource()
Get matchedmodel resource
from whichthe matched
resource method was invoked.Modifier and TypeMethodDescriptionExtendedUriInfo.getLocatorSubResources()
Get the list of sub resources returned from resource locators during matching.ResourceConfig.getResources()
ServerConfig.getResources()
Get programmatically modeled resources.Modifier and TypeMethodDescriptionfinal ResourceConfig
ResourceConfig.registerResources
(Resource... resources) Register new programmatic resource models in theResourceConfig
.Modifier and TypeMethodDescriptionfinal ResourceConfig
ResourceConfig.registerResources
(Set<Resource> resources) Register new resource models in theResourceConfig
. -
Uses of Resource in org.glassfish.jersey.server.internal.routing
Modifier and TypeMethodDescriptionvoid
RoutingContext.pushLocatorSubResource
(Resource subResourceFromLocator) Pushsub resource
returned from a sub resource locator method.void
UriRoutingContext.pushLocatorSubResource
(Resource subResourceFromLocator) -
Uses of Resource in org.glassfish.jersey.server.model
Modifier and TypeMethodDescriptionResource.Builder.build()
Build a new resource model.static Resource
Create a resource model initialized by introspecting an annotated JAX-RS resource class.static Resource
Create a resource model initialized by introspecting an annotated JAX-RS resource class.Resource.getParent()
Get the parent resource for this resource model ornull
in case this resource is a top-level resource and does not have a parent.ResourceMethod.getParent()
Get the parent resource for this resource method model.Modifier and TypeMethodDescriptionResource.getChildResources()
Returns the list of child resources available on this resource.RuntimeResource.getParentResources()
ResourceModel.getResources()
Return all resources from this resource model.RuntimeResource.getResources()
Get resources creating this runtime resource.ResourceModel.getRootResources()
Return root resources from this resource model.Modifier and TypeMethodDescriptionvoid
Resource.Builder.addChildResource
(Resource resource) Add an existing Resource as a child resource of current resource.ResourceModel.Builder.addResource
(Resource resource) Add a resource to the builder.static Resource.Builder
Get a new resource model builder initialized from a given resource model.Merge methods from a given resource model into this resource model builder.void
Resource.Builder.replaceChildResource
(Resource replacedResource, Resource newResource) Replace an existing child resource with a newly supplied one.void
AbstractResourceModelVisitor.visitChildResource
(Resource resource) void
ResourceModelVisitor.visitChildResource
(Resource resource) Start visiting a single child resource model.void
AbstractResourceModelVisitor.visitResource
(Resource resource) void
ResourceModelVisitor.visitResource
(Resource resource) Start visiting a single resource model.Modifier and TypeMethodDescriptionstatic Resource.Builder
Creates aresource builder
instance from the list ofresource
which can be merged into a single resource. -
Uses of Resource in org.glassfish.jersey.server.wadl
Modifier and TypeMethodDescriptionWadlGenerator.createMethod
(Resource r, ResourceMethod m) WadlGenerator.createParam
(Resource r, ResourceMethod m, Parameter p) WadlGenerator.createRequest
(Resource r, ResourceMethod m) WadlGenerator.createRequestRepresentation
(Resource r, ResourceMethod m, MediaType mediaType) WadlGenerator.createResource
(Resource r, String path) WadlGenerator.createResponses
(Resource r, ResourceMethod m) WadlApplicationContext.getApplication
(UriInfo info, Resource resource, boolean detailedWadl) Get a new instance ofApplication
for a particular resource. -
Uses of Resource in org.glassfish.jersey.server.wadl.internal
Modifier and TypeMethodDescriptionWadlGeneratorImpl.createMethod
(Resource r, ResourceMethod m) WadlGeneratorImpl.createParam
(Resource r, ResourceMethod m, Parameter p) WadlGeneratorImpl.createRequest
(Resource r, ResourceMethod m) WadlGeneratorImpl.createRequestRepresentation
(Resource r, ResourceMethod m, MediaType mediaType) WadlGeneratorImpl.createResource
(Resource resource, String path) WadlGeneratorImpl.createResponseRepresentation
(Resource r, ResourceMethod m, MediaType mediaType) WadlGeneratorImpl.createResponses
(Resource r, ResourceMethod m) WadlBuilder.generate
(ApplicationDescription description, Resource resource) Generate WADL for a resource.WadlApplicationContextImpl.getApplication
(UriInfo info, Resource resource, boolean detailedWadl) Modifier and TypeMethodDescriptionGenerate WADL for a set of resources. -
Uses of Resource in org.glassfish.jersey.server.wadl.internal.generators
Modifier and TypeMethodDescriptionWadlGeneratorApplicationDoc.createMethod
(Resource r, ResourceMethod m) WadlGeneratorGrammarsSupport.createMethod
(Resource ar, ResourceMethod arm) WadlGeneratorJAXBGrammarGenerator.createMethod
(Resource ar, ResourceMethod arm) WadlGeneratorApplicationDoc.createParam
(Resource r, ResourceMethod m, Parameter p) WadlGeneratorGrammarsSupport.createParam
(Resource ar, ResourceMethod am, Parameter p) WadlGeneratorJAXBGrammarGenerator.createParam
(Resource ar, ResourceMethod am, Parameter p) WadlGeneratorApplicationDoc.createRequest
(Resource r, ResourceMethod m) WadlGeneratorGrammarsSupport.createRequest
(Resource ar, ResourceMethod arm) WadlGeneratorJAXBGrammarGenerator.createRequest
(Resource ar, ResourceMethod arm) WadlGeneratorApplicationDoc.createRequestRepresentation
(Resource r, ResourceMethod m, MediaType mediaType) WadlGeneratorGrammarsSupport.createRequestRepresentation
(Resource ar, ResourceMethod arm, MediaType mt) WadlGeneratorJAXBGrammarGenerator.createRequestRepresentation
(Resource ar, ResourceMethod arm, MediaType mt) WadlGeneratorApplicationDoc.createResource
(Resource r, String path) WadlGeneratorGrammarsSupport.createResource
(Resource ar, String path) WadlGeneratorJAXBGrammarGenerator.createResource
(Resource ar, String path) WadlGeneratorApplicationDoc.createResponses
(Resource r, ResourceMethod m) WadlGeneratorGrammarsSupport.createResponses
(Resource ar, ResourceMethod arm) WadlGeneratorJAXBGrammarGenerator.createResponses
(Resource resource, ResourceMethod resourceMethod) -
Uses of Resource in org.glassfish.jersey.server.wadl.internal.generators.resourcedoc
Modifier and TypeMethodDescriptionWadlGeneratorResourceDocSupport.createMethod
(Resource resource, ResourceMethod resourceMethod) WadlGeneratorResourceDocSupport.createParam
(Resource r, ResourceMethod m, Parameter p) WadlGeneratorResourceDocSupport.createRequest
(Resource r, ResourceMethod m) WadlGeneratorResourceDocSupport.createRequestRepresentation
(Resource r, ResourceMethod m, MediaType mediaType) WadlGeneratorResourceDocSupport.createResource
(Resource r, String path) WadlGeneratorResourceDocSupport.createResponses
(Resource r, ResourceMethod m)