Class JerseyEndpointResourceFactory
java.lang.Object
org.springframework.boot.jersey.actuate.endpoint.web.JerseyEndpointResourceFactory
A factory for creating Jersey
Resources for web
endpoint operations.- Since:
- 4.0.0
- Author:
- Andy Wilkinson, Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEndpointResources(EndpointMapping endpointMapping, Collection<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, EndpointLinksResolver linksResolver, boolean shouldRegisterLinks) CreatesResourcesfor the operations of the givenwebEndpoints.protected ResourcecreateResource(EndpointMapping endpointMapping, WebOperation operation) protected ResourcegetResource(EndpointMapping endpointMapping, WebOperation operation, WebOperationRequestPredicate requestPredicate, String path, @Nullable WebServerNamespace serverNamespace, @Nullable org.springframework.boot.jersey.actuate.endpoint.web.JerseyRemainingPathSegmentProvider remainingPathSegmentProvider)
-
Constructor Details
-
JerseyEndpointResourceFactory
public JerseyEndpointResourceFactory()
-
-
Method Details
-
createEndpointResources
public Collection<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
-
getResource
protected Resource getResource(EndpointMapping endpointMapping, WebOperation operation, WebOperationRequestPredicate requestPredicate, String path, @Nullable WebServerNamespace serverNamespace, @Nullable org.springframework.boot.jersey.actuate.endpoint.web.JerseyRemainingPathSegmentProvider remainingPathSegmentProvider)
-