Class AuditEventsMvcEndpoint
- java.lang.Object
- org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
- org.springframework.boot.actuate.endpoint.mvc.AbstractMvcEndpoint
- org.springframework.boot.actuate.endpoint.mvc.AbstractNamedMvcEndpoint
- org.springframework.boot.actuate.endpoint.mvc.AuditEventsMvcEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,MvcEndpoint
,NamedMvcEndpoint
,org.springframework.context.EnvironmentAware
,org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@ConfigurationProperties(prefix="endpoints.auditevents") public class AuditEventsMvcEndpoint extends AbstractNamedMvcEndpoint
MvcEndpoint
to exposeAuditEvent
s.- Since:
- 1.5.0
Field Summary
Fields inherited from interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
DISABLED_RESPONSE
Constructor Summary
Constructors Constructor Description AuditEventsMvcEndpoint(AuditEventRepository auditEventRepository)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<?>
findByPrincipalAndAfterAndType(String principal, Date after, String type)
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.AbstractNamedMvcEndpoint
getName
Methods inherited from class org.springframework.boot.actuate.endpoint.mvc.AbstractMvcEndpoint
getEndpointType, getEnvironment, getPath, isEnabled, isSensitive, setEnabled, setEnvironment, setPath, setSensitive
Methods inherited from class org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addResourceHandlers, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint
getEndpointType, getPath, isSensitive
Constructor Detail
AuditEventsMvcEndpoint
public AuditEventsMvcEndpoint(AuditEventRepository auditEventRepository)
Method Detail
findByPrincipalAndAfterAndType
@ActuatorGetMapping @ResponseBody public org.springframework.http.ResponseEntity<?> findByPrincipalAndAfterAndType(@RequestParam(required=false) String principal, @RequestParam(required=false) @DateTimeFormat(pattern="yyyy-MM-dd\'T\'HH:mm:ssZ") Date after, @RequestParam(required=false) String type)