org.sakaiproject.jsf.util
Class SamigoJsfTool
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.sakaiproject.jsf.util.JsfTool
org.sakaiproject.jsf.util.SamigoJsfTool
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class SamigoJsfTool
- extends org.sakaiproject.jsf.util.JsfTool
Customized JsfTool for Samigo - just to workaround the fact that Samigo
has the JSF URL mapping "*.faces" hard-coded in several places. If
all instances of "*.faces" were changed to "*.jsf", this class could be removed.
- See Also:
- Serialized Form
| Fields inherited from class org.sakaiproject.jsf.util.JsfTool |
JSF_EXT, LAST_VIEW_VISITED, m_default, m_defaultToLastView, m_path, URL_EXT, URL_PATH |
|
Method Summary |
protected String |
computeDefaultTarget(boolean lastVisited)
|
protected void |
dispatch(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
protected boolean |
isResourceRequest(String path)
Recognize a path that is a resource request. |
protected boolean |
sendToHelper(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
| Methods inherited from class org.sakaiproject.jsf.util.JsfTool |
computeDefaultTarget, destroy, doGet, doPost, getServletInfo, init, redirectRequestedTarget |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SamigoJsfTool
public SamigoJsfTool()
isResourceRequest
protected boolean isResourceRequest(String path)
- Recognize a path that is a resource request. It must have an "extension", i.e. a dot followed by characters that do not include a slash.
- Overrides:
isResourceRequest in class org.sakaiproject.jsf.util.JsfTool
- Parameters:
path - The path to check
- Returns:
- true if the path is a resource request, false if not.
dispatch
protected void dispatch(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
dispatch in class org.sakaiproject.jsf.util.JsfTool
- Throws:
javax.servlet.ServletException
IOException
sendToHelper
protected boolean sendToHelper(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws org.sakaiproject.tool.api.ToolException
- Throws:
org.sakaiproject.tool.api.ToolException
computeDefaultTarget
protected String computeDefaultTarget(boolean lastVisited)
Copyright © 2005-2012 Sakai Project. All Rights Reserved.