public class WebEndpointDiscoverer extends EndpointDiscoverer<ExposableWebEndpoint,WebOperation> implements WebEndpointsSupplier
EndpointDiscoverer.OperationKey
Constructor and Description |
---|
WebEndpointDiscoverer(ApplicationContext applicationContext,
ParameterValueMapper parameterValueMapper,
EndpointMediaTypes endpointMediaTypes,
PathMapper endpointPathMapper,
Collection<OperationInvokerAdvisor> invokerAdvisors,
Collection<EndpointFilter<ExposableWebEndpoint>> filters)
Create a new
WebEndpointDiscoverer instance. |
Modifier and Type | Method and Description |
---|---|
protected ExposableWebEndpoint |
createEndpoint(Object endpointBean,
String id,
boolean enabledByDefault,
Collection<WebOperation> operations)
Factory method called to create the
endpoint . |
protected WebOperation |
createOperation(String endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Factory method to create an
endpoint operation . |
protected EndpointDiscoverer.OperationKey |
createOperationKey(WebOperation operation)
Create a
EndpointDiscoverer.OperationKey for the given operation. |
getEndpoints, getEndpointType, isEndpointExposed, isExtensionExposed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoints
public WebEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, PathMapper endpointPathMapper, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters)
WebEndpointDiscoverer
instance.applicationContext
- the source application contextparameterValueMapper
- the parameter value mapperendpointMediaTypes
- the endpoint media typesendpointPathMapper
- the endpoint path mapperinvokerAdvisors
- invoker advisors to applyfilters
- filters to applyprotected ExposableWebEndpoint createEndpoint(Object endpointBean, String 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(String 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 © 2018 Pivotal Software, Inc.. All rights reserved.