@Component public class Responder extends Object
Response
.Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response.ResponseBuilder |
builder(javax.ws.rs.core.Response.Status status)
Starts a response builder for a given status.
|
javax.ws.rs.core.Response |
errors(ErrorCollection errors)
Converts an
ErrorCollection to a Response . |
javax.ws.rs.core.Response |
exception(Exception exception)
Creates a response about an exception.
|
javax.ws.rs.core.Response |
restfulErrors(ErrorCollection errors)
Converts an
ErrorCollection to a Response . |
javax.ws.rs.core.Response |
successfulDelete()
Standard response for a successful DELETE request.
|
public javax.ws.rs.core.Response errors(ErrorCollection errors)
ErrorCollection
to a Response
.errors
- Errors to be convertedpublic javax.ws.rs.core.Response restfulErrors(ErrorCollection errors)
ErrorCollection
to a Response
.errors
- Errors to be convertedpublic javax.ws.rs.core.Response successfulDelete()
public javax.ws.rs.core.Response.ResponseBuilder builder(javax.ws.rs.core.Response.Status status)
status
- Initial statuspublic javax.ws.rs.core.Response exception(Exception exception)
exception
- Exception included in the responseCopyright © 2002-2022 Atlassian. All Rights Reserved.