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,
EndpointId id,
boolean enabledByDefault,
Collection<WebOperation> operations)
Factory method called to create the
endpoint . |
protected ExposableWebEndpoint |
createEndpoint(Object endpointBean,
String id,
boolean enabledByDefault,
Collection<WebOperation> operations)
Deprecated.
|
protected WebOperation |
createOperation(EndpointId endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Factory method to create an
endpoint operation . |
protected WebOperation |
createOperation(String endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Deprecated.
|
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(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 apply@Deprecated protected 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 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)@Deprecated 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 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 © 2018 Pivotal Software, Inc.. All rights reserved.