public class WebEndpointDiscoverer extends EndpointDiscoverer<ExposableWebEndpoint,WebOperation> implements WebEndpointsSupplier
EndpointDiscoverer.OperationKey
Constructor and Description |
---|
WebEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext,
ParameterValueMapper parameterValueMapper,
EndpointMediaTypes endpointMediaTypes,
List<PathMapper> endpointPathMappers,
Collection<OperationInvokerAdvisor> invokerAdvisors,
Collection<EndpointFilter<ExposableWebEndpoint>> filters)
Create a new
WebEndpointDiscoverer instance. |
Modifier and Type | Method and Description |
---|---|
protected ExposableWebEndpoint |
createEndpoint(Object endpointBean,
EndpointId id,
boolean enabledByDefault,
Collection<WebOperation> operations)
Factory method called to create the
endpoint . |
protected WebOperation |
createOperation(EndpointId endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Factory method to create an
endpoint operation . |
protected EndpointDiscoverer.OperationKey |
createOperationKey(WebOperation operation)
Create an
EndpointDiscoverer.OperationKey for the given operation. |
getEndpoints, getEndpointType, isEndpointExposed, isExtensionExposed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoints
public WebEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters)
WebEndpointDiscoverer
instance.applicationContext
- the source application contextparameterValueMapper
- the parameter value mapperendpointMediaTypes
- the endpoint media typesendpointPathMappers
- the endpoint path mappersinvokerAdvisors
- invoker advisors to applyfilters
- filters to applyprotected ExposableWebEndpoint createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<WebOperation> operations)
EndpointDiscoverer
endpoint
.createEndpoint
in class EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
endpointBean
- the source endpoint beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operationsDiscoveredEndpoint
is recommended)protected WebOperation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
EndpointDiscoverer
endpoint operation
.createOperation
in class EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to useprotected EndpointDiscoverer.OperationKey createOperationKey(WebOperation operation)
EndpointDiscoverer
EndpointDiscoverer.OperationKey
for the given operation.createOperationKey
in class EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
operation
- the source operationCopyright © 2019 Pivotal Software, Inc.. All rights reserved.