|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.web.RESTWebService.WebProcess<RETURN_VALUE>
RETURN_VALUE - the type of the value returned by the web treatment.protected final class RESTWebService.WebProcess<RETURN_VALUE>
This class handles the execution of a RESTWebService.WebTreatment.
It provides the centralization of exception catches and handles the lowest role access that
must the user verify.
| Constructor Summary | |
|---|---|
protected |
RESTWebService.WebProcess(RESTWebService.WebTreatment<RETURN_VALUE> webTreatment)
Default constructor. |
| Method Summary | |
|---|---|
RETURN_VALUE |
execute()
This method calls the execute method of a .WebTreatment instance. |
RESTWebService.WebProcess<RETURN_VALUE> |
lowestAccessRole(SilverpeasRole lowestRoleAccess)
Sets the lowest role access that the user behind the service call must verify. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RESTWebService.WebProcess(RESTWebService.WebTreatment<RETURN_VALUE> webTreatment)
webTreatment - | Method Detail |
|---|
public RESTWebService.WebProcess<RETURN_VALUE> lowestAccessRole(SilverpeasRole lowestRoleAccess)
lowestRoleAccess -
public RETURN_VALUE execute()
.WebTreatment instance.
One of the aim of this mechanism is to centralize the exception catching and also to avoid
redundant coding around web exceptions.
If a lowest role access is defined, the user must verify it.
If the user isn't authentified, a 401 HTTP code is returned.
If a problem occurs when processing the request, a 503 HTTP code is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||