|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.cycle.web.service.AbstractRestService
public class AbstractRestService
This is the base class used by all rest controllers and encapsulates shared behavior.
| Constructor Summary | |
|---|---|
AbstractRestService()
|
|
| Method Summary | |
|---|---|
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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRestService()
| Method Detail |
|---|
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||