List of usage examples for org.springframework.http HttpStatus value
int value
To view the source code for org.springframework.http HttpStatus value.
Click Source Link
From source file:com.github.marceloverdijk.spring.security.jwt.web.JwtAuthenticationEntryPoint.java
@Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException { HttpStatus unauthorized = HttpStatus.UNAUTHORIZED; response.sendError(unauthorized.value(), unauthorized.getReasonPhrase()); }
From source file:web.logging.ExceptionLoggerAdvice.java
protected void sendStatus(HttpServletResponse response, HttpStatus status) throws IOException { response.sendError(status.value(), status.getReasonPhrase()); }
From source file:com.ogaclejapan.dotapk.WebApiError.java
public WebApiError(HttpStatus status, String message, String code) { this.status = status.value(); this.message = (message != null) ? message : status.getReasonPhrase(); this.code = code; }
From source file:cz.jirutka.spring.exhandler.messages.ErrorMessage.java
public void setStatus(HttpStatus status) { this.status = status.value(); }
From source file:org.craftercms.commons.rest.RestServiceException.java
public RestServiceException(HttpStatus responseStatus, Object errorDetails) { super("responseStatus = " + responseStatus.value() + ", errorDetails = " + errorDetails); this.responseStatus = responseStatus; this.errorDetails = errorDetails; }
From source file:org.jasig.springframework.web.client.HttpServletProxyResponse.java
@Override public void setHttpStatus(HttpStatus status) { this.servletResponse.setStatus(status.value()); }
From source file:com.bennavetta.appsite.serve.HttpServletResp.java
@Override public void setStatus(HttpStatus status) { response.setStatus(status.value()); current = status; }
From source file:org.apereo.openlrs.model.error.XAPIErrorInfo.java
private void getDataFromHttpStatus(final HttpStatus status) { this.status = status.value(); this.reason = status.getReasonPhrase(); }
From source file:com.iggroup.oss.sample.web.controller.exception.SampleException.java
/** * Constructor/* ww w . jav a2s. com*/ * * @param errors sample error list being thrown * @param httpStatus response http status */ public SampleException(final List<SampleError> errors, HttpStatus httpStatus) { super(); this.httpStatus = httpStatus.value(); this.errors = errors; }
From source file:com.iggroup.oss.sample.web.controller.exception.SampleException.java
/** * Constructor//from w w w. java 2 s .c o m * * @param error sample error being thrown * @param httpStatus response http status */ public SampleException(final SampleError error, HttpStatus httpStatus) { super(); this.httpStatus = httpStatus.value(); errors = new ArrayList<SampleError>(); errors.add(error); }