|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PortalHandler
Tools that want to add handlers into the portal URL space may impliment this interface. The once injected into the portal the portal will invoke the register and deregister methods as part of the life cycle.
| Field Summary | |
|---|---|
static int |
ABORT
Return codes, stop processing immediately |
static int |
END
Stop processing |
static int |
NEXT
try next handler |
static int |
RESET_DONE
stop processing and mark reset as done |
| Method Summary | |
|---|---|
void |
deregister(Portal portal)
deregister the the portal, invoked by the portal |
int |
doGet(String[] parts,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.sakaiproject.tool.api.Session session)
Perform a get, the method should inspect parts[] and other parameters to determin if it should perform the operation, returning one of the above codes |
int |
doPost(String[] parts,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.sakaiproject.tool.api.Session session)
perform a post but only accept it the handler accepts a post. |
String |
getUrlFragment()
get the fragment of the URL that represents part[1] and is used to register the handler in the portal. |
void |
register(Portal portal,
PortalService portalService,
javax.servlet.ServletContext servletContext)
register this handler with the portal, invoked by the portal |
| Field Detail |
|---|
static final int ABORT
static final int END
static final int NEXT
static final int RESET_DONE
| Method Detail |
|---|
int doGet(String[] parts,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.sakaiproject.tool.api.Session session)
throws PortalHandlerException
parts - req - res - session -
IOException
javax.servlet.ServletException
ToolHandlerException
PortalHandlerExceptionString getUrlFragment()
void deregister(Portal portal)
portal -
void register(Portal portal,
PortalService portalService,
javax.servlet.ServletContext servletContext)
portal - portalService - servletContext -
int doPost(String[] parts,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
org.sakaiproject.tool.api.Session session)
throws PortalHandlerException
parts - req - res - session -
PortalHandlerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||