public abstract class AbstractResource extends Object
Constructor and Description |
---|
AbstractResource() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
createErrorResponse(Collection<ValidationError> errors)
Creates an error response using the given errors.
|
protected javax.ws.rs.core.Response |
createIndexingUnavailableResponse(String message) |
protected javax.ws.rs.core.Response |
createValidationResponse(Collection<ValidationError> errors)
Creates a response based on the given errors.
|
protected javax.ws.rs.core.Response createErrorResponse(Collection<ValidationError> errors)
errors
- the errors to use for the error response. Should not be empty.protected javax.ws.rs.core.Response createIndexingUnavailableResponse(String message)
protected javax.ws.rs.core.Response createValidationResponse(Collection<ValidationError> errors)
ValidationError
and then just return
the result of calling this method.errors
- the possibly empty collection of errors.Copyright © 2002-2018 Atlassian. All Rights Reserved.