public class EndpointMvcAdapter extends Object implements MvcEndpoint
Endpoint
s as MvcEndpoint
s.Constructor and Description |
---|
EndpointMvcAdapter(Endpoint<?> delegate)
Create a new
EndpointMvcAdapter . |
Modifier and Type | Method and Description |
---|---|
Endpoint<?> |
getDelegate() |
Class<? extends Endpoint> |
getEndpointType()
Return the type of
Endpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint . |
String |
getPath()
Return the MVC path of the endpoint.
|
Object |
invoke() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
public EndpointMvcAdapter(Endpoint<?> delegate)
EndpointMvcAdapter
.delegate
- the underlying Endpoint
to adapt.public Object invoke()
public Endpoint<?> getDelegate()
public String getPath()
MvcEndpoint
getPath
in interface MvcEndpoint
public boolean isSensitive()
MvcEndpoint
isSensitive
in interface MvcEndpoint
public Class<? extends Endpoint> getEndpointType()
MvcEndpoint
Endpoint
exposed, or null
if this
MvcEndpoint
exposes information that cannot be represented as a traditional
Endpoint
.getEndpointType
in interface MvcEndpoint
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.