Package | Description |
---|---|
org.glassfish.jersey.server |
Jersey server-side classes.
|
org.glassfish.jersey.server.model |
Jersey server-side application & resource modeling classes.
|
org.glassfish.jersey.server.wadl |
Jersey server-side WADL support public classes and interfaces.
|
org.glassfish.jersey.server.wadl.internal |
Jersey server-side WADL internal classes.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ExtendedUriInfo.getMatchedModelResource()
Get matched
model resource from which the matched resource method
was invoked. |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
ExtendedUriInfo.getLocatorSubResources()
Get the list of sub resources returned from resource locators during matching.
|
Set<Resource> |
ResourceConfig.getResources() |
Set<Resource> |
ServerConfig.getResources()
Get programmatically modeled resources.
|
Modifier and Type | Method and Description |
---|---|
ResourceConfig |
ResourceConfig.registerResources(Resource... resources)
Register new programmatic resource models in the
ResourceConfig . |
Modifier and Type | Method and Description |
---|---|
ResourceConfig |
ResourceConfig.registerResources(Set<Resource> resources)
Register new resource models in the
ResourceConfig . |
Modifier and Type | Method and Description |
---|---|
Resource |
Resource.Builder.build()
Build a new resource model.
|
static Resource |
Resource.from(Class<?> resourceClass)
Create a resource model initialized by introspecting an annotated
JAX-RS resource class.
|
static Resource |
Resource.from(Class<?> resourceClass,
boolean disableValidation)
Create a resource model initialized by introspecting an annotated
JAX-RS resource class.
|
Resource |
Resource.getParent()
Get the parent resource for this resource model or
null in case this
resource is a top-level resource and does not have a parent. |
Resource |
ResourceMethod.getParent()
Get the parent resource for this resource method model.
|
Modifier and Type | Method and Description |
---|---|
List<Resource> |
Resource.getChildResources()
Returns the list of child resources available on this resource.
|
List<Resource> |
RuntimeResource.getParentResources()
|
List<Resource> |
ResourceModel.getResources()
Return all resources from this resource model.
|
List<Resource> |
RuntimeResource.getResources()
Get resources creating this runtime resource.
|
List<Resource> |
ResourceModel.getRootResources()
Return root resources from this resource model.
|
Modifier and Type | Method and Description |
---|---|
void |
Resource.Builder.addChildResource(Resource resource)
Add an existing Resource as a child resource of current resource.
|
ResourceModel.Builder |
ResourceModel.Builder.addResource(Resource resource)
Add a resource to the builder.
|
static Resource.Builder |
Resource.builder(Resource resource)
Get a new resource model builder initialized from a given resource model.
|
Resource.Builder |
Resource.Builder.mergeWith(Resource resource)
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 Type | Method and Description |
---|---|
static Resource.Builder |
Resource.builder(List<Resource> resources)
Creates a
resource builder instance from the list of resource which can be merged
into a single resource. |
Constructor and Description |
---|
Builder(List<Resource> resources,
boolean subResourceModel)
Create new builder pre initialized with
resource . |
RuntimeResourceModel(List<Resource> resources)
Creates new runtime resource model from the list of resources.
|
Modifier and Type | Method and Description |
---|---|
Method |
WadlGenerator.createMethod(Resource r,
ResourceMethod m) |
Param |
WadlGenerator.createParam(Resource r,
ResourceMethod m,
Parameter p) |
Request |
WadlGenerator.createRequest(Resource r,
ResourceMethod m) |
Representation |
WadlGenerator.createRequestRepresentation(Resource r,
ResourceMethod m,
javax.ws.rs.core.MediaType mediaType) |
Resource |
WadlGenerator.createResource(Resource r,
String path) |
List<Response> |
WadlGenerator.createResponses(Resource r,
ResourceMethod m) |
Application |
WadlApplicationContext.getApplication(javax.ws.rs.core.UriInfo info,
Resource resource,
boolean detailedWadl)
Get a new instance of
Application for a particular resource. |
Modifier and Type | Method and Description |
---|---|
Method |
WadlGeneratorImpl.createMethod(Resource r,
ResourceMethod m) |
Param |
WadlGeneratorImpl.createParam(Resource r,
ResourceMethod m,
Parameter p) |
Request |
WadlGeneratorImpl.createRequest(Resource r,
ResourceMethod m) |
Representation |
WadlGeneratorImpl.createRequestRepresentation(Resource r,
ResourceMethod m,
javax.ws.rs.core.MediaType mediaType) |
Resource |
WadlGeneratorImpl.createResource(Resource resource,
String path) |
Representation |
WadlGeneratorImpl.createResponseRepresentation(Resource r,
ResourceMethod m,
javax.ws.rs.core.MediaType mediaType) |
List<Response> |
WadlGeneratorImpl.createResponses(Resource r,
ResourceMethod m) |
Application |
WadlBuilder.generate(ApplicationDescription description,
Resource resource)
Generate WADL for a resource.
|
Application |
WadlApplicationContextImpl.getApplication(javax.ws.rs.core.UriInfo info,
Resource resource,
boolean detailedWadl) |
Modifier and Type | Method and Description |
---|---|
ApplicationDescription |
WadlBuilder.generate(List<Resource> resources)
Generate WADL for a set of resources.
|
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.