org.apache.shindig.gadgets.servlet
Class JsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.shindig.common.servlet.InjectedServlet
org.apache.shindig.gadgets.servlet.JsServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class JsServlet
- extends InjectedServlet
Simple servlet serving up JavaScript files by their registered aliases.
Used by type=URL gadgets in loading JavaScript resources.
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsServlet
public JsServlet()
setJsHandler
@Inject
public void setJsHandler(JsHandler jsHandler)
setUrlGenerator
@Inject
public void setUrlGenerator(JsUriManager jsUriManager)
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
IOException
postJsContentProcessing
protected void postJsContentProcessing(javax.servlet.http.HttpServletResponse resp,
UriStatus vstatus,
boolean isProxyCacheable)
- Provides post JavaScript content processing. The default behavior will check the UriStatus and
update the response header with cache option.
- Parameters:
resp - The HttpServeltResponse object.vstatus - The UriStatus object.isProxyCacheable - boolean true if content is cacheable and false otherwise.
Copyright © 2007-2012. All Rights Reserved.