public class WebEndpointDiscoverer extends EndpointDiscoverer<ExposableWebEndpoint,WebOperation> implements WebEndpointsSupplier
EndpointDiscoverer.OperationKey| Constructor and Description |
|---|
WebEndpointDiscoverer(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, isEndpointTypeExposed, isExtensionTypeExposedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndpointspublic WebEndpointDiscoverer(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)
EndpointDiscovererendpoint.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)
EndpointDiscovererendpoint operation.createOperation in class EndpointDiscoverer<ExposableWebEndpoint,WebOperation>endpointId - the endpoint idoperationMethod - the operation methodinvoker - the invoker to useprotected EndpointDiscoverer.OperationKey createOperationKey(WebOperation operation)
EndpointDiscovererEndpointDiscoverer.OperationKey for the given operation.createOperationKey in class EndpointDiscoverer<ExposableWebEndpoint,WebOperation>operation - the source operation