@ConfigurationProperties(value="endpoints.links") public class LinksMvcEndpoint extends Object implements MvcEndpoint
MvcEndpoint to add hypermedia links.DISABLED_RESPONSE| Constructor and Description |
|---|
LinksMvcEndpoint(String defaultPath) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
org.springframework.hateoas.ResourceSupport |
links() |
void |
setPath(String path) |
void |
setSensitive(boolean sensitive) |
public LinksMvcEndpoint(String defaultPath)
@RequestMapping(value={"/",""}, produces="application/json") @ResponseBody public org.springframework.hateoas.ResourceSupport links()
public void setPath(String path)
public String getPath()
MvcEndpointgetPath in interface MvcEndpointpublic boolean isSensitive()
MvcEndpointisSensitive in interface MvcEndpointpublic void setSensitive(boolean sensitive)
public Class<? extends Endpoint<?>> getEndpointType()
MvcEndpointEndpoint exposed, or null if this
MvcEndpoint exposes information that cannot be represented as a traditional
Endpoint.getEndpointType in interface MvcEndpointCopyright © 2015 Pivotal Software, Inc.. All rights reserved.