@RestController
public final class StatusController
extends net.avcompris.commons3.web.AbstractController
net.avcompris.commons3.web.AbstractController.AuthenticatedAction<T>, net.avcompris.commons3.web.AbstractController.AuthenticatedServletAction<T>, net.avcompris.commons3.web.AbstractController.UnauthenticatedAction<T>, net.avcompris.commons3.web.AbstractController.UnauthenticatedAnonymousAction<T>| Constructor and Description |
|---|
StatusController(net.avcompris.commons3.core.CorrelationService correlationService,
net.avcompris.status.api.StatusService statusService,
net.avcompris.commons3.client.SessionPropagator sessionPropagator,
net.avcompris.commons3.utils.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<net.avcompris.status.api.ServiceStatus> |
getInlineServiceLiveStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String serviceId,
net.avcompris.status.api.InlineService inlineService) |
org.springframework.http.ResponseEntity<net.avcompris.status.api.ServiceStatus> |
getServiceLiveStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String serviceId) |
org.springframework.http.ResponseEntity<net.avcompris.status.api.ServicesStatus> |
getServicesLiveStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String q,
String sort,
Integer start,
Integer limit,
String expand) |
org.springframework.http.ResponseEntity<net.avcompris.status.api.ServicesStatusHistory> |
getServicesStatusHistory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String q,
String sort,
Integer start,
Integer limit,
String expand) |
org.springframework.http.ResponseEntity<net.avcompris.status.api.ServiceStatusHistory> |
getServiceStatusHistory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String serviceId) |
org.springframework.http.ResponseEntity<net.avcompris.status.api.StatusConfig> |
getStatusConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected boolean |
isHttpOnly() |
protected boolean |
isSecure() |
getUserSessionId, handleServiceException, headers, setUserSessionCookie, wrapAuthenticated, wrapAuthenticatedOrNot, wrapAuthenticatedServletAction, wrapNonAuthenticated, wrapNonAuthenticatedWithoutCorrelationId, wrapWithoutCorrelationId@Autowired
public StatusController(net.avcompris.commons3.core.CorrelationService correlationService,
net.avcompris.status.api.StatusService statusService,
net.avcompris.commons3.client.SessionPropagator sessionPropagator,
net.avcompris.commons3.utils.Clock clock)
@RequestMapping(value="/api/v1/status/live",
method=GET)
public org.springframework.http.ResponseEntity<net.avcompris.status.api.ServicesStatus> getServicesLiveStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(name="q",required=false)
String q,
@RequestParam(name="sort",required=false)
String sort,
@RequestParam(name="start",required=false)
Integer start,
@RequestParam(name="limit",required=false)
Integer limit,
@RequestParam(name="expand",required=false)
String expand)
throws net.avcompris.commons3.api.exception.ServiceException
net.avcompris.commons3.api.exception.ServiceException@RequestMapping(value="/api/v1/status/live/{serviceId}",
method=GET)
public org.springframework.http.ResponseEntity<net.avcompris.status.api.ServiceStatus> getServiceLiveStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@PathVariable(name="serviceId",required=true)
String serviceId)
throws net.avcompris.commons3.api.exception.ServiceException
net.avcompris.commons3.api.exception.ServiceException@RequestMapping(value="/api/v1/status/live/{serviceId}",
method=POST)
public org.springframework.http.ResponseEntity<net.avcompris.status.api.ServiceStatus> getInlineServiceLiveStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@PathVariable(name="serviceId",required=true)
String serviceId,
@RequestBody(required=true)
net.avcompris.status.api.InlineService inlineService)
throws net.avcompris.commons3.api.exception.ServiceException
net.avcompris.commons3.api.exception.ServiceException@RequestMapping(value="/api/v1/status/history",
method=GET)
public org.springframework.http.ResponseEntity<net.avcompris.status.api.ServicesStatusHistory> getServicesStatusHistory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@RequestParam(name="q",required=false)
String q,
@RequestParam(name="sort",required=false)
String sort,
@RequestParam(name="start",required=false)
Integer start,
@RequestParam(name="limit",required=false)
Integer limit,
@RequestParam(name="expand",required=false)
String expand)
throws net.avcompris.commons3.api.exception.ServiceException
net.avcompris.commons3.api.exception.ServiceException@RequestMapping(value="/api/v1/status/history/{serviceId}",
method=GET)
public org.springframework.http.ResponseEntity<net.avcompris.status.api.ServiceStatusHistory> getServiceStatusHistory(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
@PathVariable(name="serviceId",required=true)
String serviceId)
throws net.avcompris.commons3.api.exception.ServiceException
net.avcompris.commons3.api.exception.ServiceException@RequestMapping(value="/api/v1/status/config",
method=GET)
public org.springframework.http.ResponseEntity<net.avcompris.status.api.StatusConfig> getStatusConfig(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws net.avcompris.commons3.api.exception.ServiceException
net.avcompris.commons3.api.exception.ServiceExceptionprotected final boolean isSecure()
isSecure in class net.avcompris.commons3.web.AbstractControllerprotected final boolean isHttpOnly()
isHttpOnly in class net.avcompris.commons3.web.AbstractControllerCopyright © 2020 Avantage Compris. All rights reserved.