Class JerseyEndpointResourceFactory
java.lang.Object
org.springframework.boot.actuate.endpoint.web.jersey.JerseyEndpointResourceFactory
A factory for creating Jersey
Resources for web
endpoint operations.- Since:
- 2.0.0
- Author:
- Andy Wilkinson, Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.glassfish.jersey.server.model.Resource>createEndpointResources(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, EndpointLinksResolver linksResolver, boolean shouldRegisterLinks) CreatesResourcesfor the operations of the givenwebEndpoints.protected org.glassfish.jersey.server.model.ResourcecreateResource(EndpointMapping endpointMapping, WebOperation operation) protected org.glassfish.jersey.server.model.ResourcegetResource(EndpointMapping endpointMapping, WebOperation operation, WebOperationRequestPredicate requestPredicate, String path, WebServerNamespace serverNamespace, org.springframework.boot.actuate.endpoint.web.jersey.JerseyRemainingPathSegmentProvider remainingPathSegmentProvider)
-
Constructor Details
-
JerseyEndpointResourceFactory
public JerseyEndpointResourceFactory()
-
-
Method Details
-
createEndpointResources
public Collection<org.glassfish.jersey.server.model.Resource> createEndpointResources(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, EndpointLinksResolver linksResolver, boolean shouldRegisterLinks) CreatesResourcesfor the operations of the givenwebEndpoints.- Parameters:
endpointMapping- the base mapping for all endpointsendpoints- the web endpointsendpointMediaTypes- media types consumed and produced by the endpointslinksResolver- resolver for determining links to available endpointsshouldRegisterLinks- should register links- Returns:
- the resources for the operations
-
createResource
protected org.glassfish.jersey.server.model.Resource createResource(EndpointMapping endpointMapping, WebOperation operation) -
getResource
protected org.glassfish.jersey.server.model.Resource getResource(EndpointMapping endpointMapping, WebOperation operation, WebOperationRequestPredicate requestPredicate, String path, WebServerNamespace serverNamespace, org.springframework.boot.actuate.endpoint.web.jersey.JerseyRemainingPathSegmentProvider remainingPathSegmentProvider)
-