public abstract class AbstractRestService extends Object implements IRestService
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_LOGGED_IN_USER
The Constant NO_LOGGED_IN_USER.
|
| Constructor and Description |
|---|
AbstractRestService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.slf4j.Logger |
getLogger()
Gets the logger.
|
protected void |
sendErrorBadRequest(javax.servlet.http.HttpServletResponse response,
String message)
Send error bad request.
|
protected void |
sendErrorForbidden(javax.servlet.http.HttpServletResponse response,
String message)
Send error forbidden.
|
protected void |
sendErrorInternalServerError(javax.servlet.http.HttpServletResponse response,
String message)
Send error internal server error.
|
protected void |
sendErrorNotFound(javax.servlet.http.HttpServletResponse response,
String message)
Send error not found.
|
protected void |
sendErrorUnathorized(javax.servlet.http.HttpServletResponse response,
String message)
Send error unathorized.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic static final String NO_LOGGED_IN_USER
protected abstract org.slf4j.Logger getLogger()
protected void sendErrorNotFound(javax.servlet.http.HttpServletResponse response,
String message)
response - the responsemessage - the messageprotected void sendErrorForbidden(javax.servlet.http.HttpServletResponse response,
String message)
response - the responsemessage - the messageprotected void sendErrorBadRequest(javax.servlet.http.HttpServletResponse response,
String message)
response - the responsemessage - the messageprotected void sendErrorUnathorized(javax.servlet.http.HttpServletResponse response,
String message)
response - the responsemessage - the messageprotected void sendErrorInternalServerError(javax.servlet.http.HttpServletResponse response,
String message)
response - the responsemessage - the messageCopyright © 2010–2018 Eclipse Foundation. All rights reserved.