|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RestController
Base classes for REST-based controllers. Controllers are helpers to which a front-REST-servlet dispatches requests. Controller logic may be implemented as methods in the REST-servlet for simple cases, or as nested objects for REST-hierarchies.
Derechos Reservados
| Method Summary | |
|---|---|
void |
checkAccess(RequestContext context)
Check access to the current controller, and throw an exception if access to the given request is forbidden. |
java.lang.String |
execute(RequestContext context)
Execute the logic previous to a view display or to an action, using the given context as input. |
java.lang.String |
getMethodName()
Get the java method name, for the current controller. |
java.lang.String |
getName()
Get the name of the current controller; for navigation purposes. |
NavigationStage |
getNavigationStage(RenderContext context,
Link link)
Get the navigation stage according to the current controller and context value. |
int |
getPathInfoParamSize()
Return the number of path-info params for this method. |
java.lang.String[] |
getRequestTypes()
Get the types of requests that the current controller may answer; this will return a non-empty array if the controller is restricted to some request types; null if it is unrestricted. |
java.lang.String |
getResourcePath()
Get the path to resources related to the current controller. |
java.lang.String |
getRootModuleName()
Get the base root module name upon which this controller is based. |
boolean |
needsLogIn()
Check if action to the current controller needs log in or not. |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getMethodName()
ResourceMethodHolderjava.lang.String[] getRequestTypes()
java.lang.String getRootModuleName()
java.lang.String getResourcePath()
int getPathInfoParamSize()
boolean needsLogIn()
void checkAccess(RequestContext context)
throws AccessException
AccessException
java.lang.String execute(RequestContext context)
throws ValidationException,
SystemException
Nested non-leaf controllers may throw an exception if this method is called upon them, because themselves they don't process requests
ValidationException
SystemException
NavigationStage getNavigationStage(RenderContext context,
Link link)
Nested non-leaf controllers may throw an exception if this method is called upon them, because themselves they don't process requests
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||