public class ServletEndpointDiscoverer extends EndpointDiscoverer<ExposableServletEndpoint,Operation> implements ServletEndpointsSupplier
EndpointDiscoverer.OperationKey
Constructor and Description |
---|
ServletEndpointDiscoverer(ApplicationContext applicationContext,
PathMapper endpointPathMapper,
Collection<EndpointFilter<ExposableServletEndpoint>> filters)
Create a new
ServletEndpointDiscoverer instance. |
Modifier and Type | Method and Description |
---|---|
protected ExposableServletEndpoint |
createEndpoint(Object endpointBean,
EndpointId id,
boolean enabledByDefault,
Collection<Operation> operations)
Factory method called to create the
endpoint . |
protected ExposableServletEndpoint |
createEndpoint(Object endpointBean,
String id,
boolean enabledByDefault,
Collection<Operation> operations)
Deprecated.
|
protected Operation |
createOperation(EndpointId endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Factory method to create an
endpoint operation . |
protected Operation |
createOperation(String endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Deprecated.
|
protected EndpointDiscoverer.OperationKey |
createOperationKey(Operation operation)
Create an
EndpointDiscoverer.OperationKey for the given operation. |
protected boolean |
isEndpointExposed(Object endpointBean)
Determine if an endpoint bean should be exposed.
|
getEndpoints, getEndpointType, isExtensionExposed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoints
public ServletEndpointDiscoverer(ApplicationContext applicationContext, PathMapper endpointPathMapper, Collection<EndpointFilter<ExposableServletEndpoint>> filters)
ServletEndpointDiscoverer
instance.applicationContext
- the source application contextendpointPathMapper
- the endpoint path mapperfilters
- filters to applyprotected boolean isEndpointExposed(Object endpointBean)
EndpointDiscoverer
isEndpointExposed
in class EndpointDiscoverer<ExposableServletEndpoint,Operation>
endpointBean
- the endpoint beantrue
if the endpoint is exposed@Deprecated protected ExposableServletEndpoint createEndpoint(Object endpointBean, String id, boolean enabledByDefault, Collection<Operation> operations)
EndpointDiscoverer
endpoint
.createEndpoint
in class EndpointDiscoverer<ExposableServletEndpoint,Operation>
endpointBean
- the source endpoint beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operationsDiscoveredEndpoint
is recommended)protected ExposableServletEndpoint createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<Operation> operations)
EndpointDiscoverer
endpoint
.createEndpoint
in class EndpointDiscoverer<ExposableServletEndpoint,Operation>
endpointBean
- the source endpoint beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operationsDiscoveredEndpoint
is recommended)@Deprecated protected Operation createOperation(String endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
EndpointDiscoverer
endpoint operation
.createOperation
in class EndpointDiscoverer<ExposableServletEndpoint,Operation>
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to useprotected Operation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
EndpointDiscoverer
endpoint operation
.createOperation
in class EndpointDiscoverer<ExposableServletEndpoint,Operation>
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to useprotected EndpointDiscoverer.OperationKey createOperationKey(Operation operation)
EndpointDiscoverer
EndpointDiscoverer.OperationKey
for the given operation.createOperationKey
in class EndpointDiscoverer<ExposableServletEndpoint,Operation>
operation
- the source operationCopyright © 2019 Pivotal Software, Inc.. All rights reserved.