public class AbstractRestService extends Object
Constructor and Description |
---|
AbstractRestService() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.WebApplicationException |
badRequest(String message)
Issue a bad request exception with the given reason
|
protected javax.ws.rs.WebApplicationException |
internalServerError(String message)
Issue a internal server error response with the given reason
|
protected javax.ws.rs.WebApplicationException |
notAllowed(String message)
Issue a not found response with the given reason
|
protected javax.ws.rs.WebApplicationException |
notFound(String message)
Issue a not found response with the given reason
|
protected javax.ws.rs.core.Response |
redirectTo(String uri)
Redirect to the specific url (relative to the base url)
|
protected javax.ws.rs.core.Response redirectTo(String uri)
uri
- protected javax.ws.rs.WebApplicationException notFound(String message)
message
- protected javax.ws.rs.WebApplicationException badRequest(String message)
message
- protected javax.ws.rs.WebApplicationException notAllowed(String message)
message
- protected javax.ws.rs.WebApplicationException internalServerError(String message)
message
- Copyright © 2015. All rights reserved.