@ConfigurationProperties(prefix="endpoints.logfile") public class LogFileMvcEndpoint extends Object implements MvcEndpoint, EnvironmentAware
DISABLED_RESPONSE
Constructor and Description |
---|
LogFileMvcEndpoint() |
Modifier and Type | Method and Description |
---|---|
ResponseEntity<?> |
available() |
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.
|
ResponseEntity<?> |
invoke() |
boolean |
isEnabled() |
boolean |
isSensitive()
Return if the endpoint exposes sensitive information.
|
void |
setEnabled(boolean enabled) |
void |
setEnvironment(Environment environment) |
void |
setPath(String path) |
void |
setSensitive(boolean sensitive) |
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
public String getPath()
MvcEndpoint
getPath
in interface MvcEndpoint
public void setPath(String path)
public boolean isSensitive()
MvcEndpoint
isSensitive
in interface MvcEndpoint
public void setSensitive(boolean sensitive)
public boolean isEnabled()
public void setEnabled(boolean enabled)
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
@RequestMapping(method=HEAD) @ResponseBody public ResponseEntity<?> available()
@RequestMapping(method=GET) @ResponseBody public ResponseEntity<?> invoke() throws IOException
IOException
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.