public interface PortalHandler
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(Portal portal)
deregister the the portal, invoked by the portal
|
int |
doGet(String[] parts,
HttpServletRequest req,
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,
HttpServletRequest req,
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,
ServletContext servletContext)
register this handler with the portal, invoked by the portal
|
static final int ABORT
static final int END
static final int NEXT
static final int RESET_DONE
int doGet(String[] parts, HttpServletRequest req, HttpServletResponse res, org.sakaiproject.tool.api.Session session) throws PortalHandlerException
parts - req - res - session - IOExceptionServletExceptionToolHandlerExceptionPortalHandlerExceptionString getUrlFragment()
void deregister(Portal portal)
portal - void register(Portal portal, PortalService portalService, ServletContext servletContext)
portal - portalService - servletContext - int doPost(String[] parts, HttpServletRequest req, HttpServletResponse res, org.sakaiproject.tool.api.Session session) throws PortalHandlerException
parts - req - res - session - PortalHandlerExceptionCopyright © 2003-2015 Sakai Project. All Rights Reserved.