org.apache.shindig.gadgets.servlet
Class MakeRequestServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.shindig.common.servlet.InjectedServlet
org.apache.shindig.gadgets.servlet.MakeRequestServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class MakeRequestServlet
- extends InjectedServlet
Handles calls to gadgets.io.makeRequest.
GET and POST are supported so as to facilitate improved browser caching.
Currently this just delegates to MakeRequestHandler, which deals with both
makeRequest and open proxy calls.
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setMakeRequestHandler(MakeRequestHandler makeRequestHandler)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, 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 |
MakeRequestServlet
public MakeRequestServlet()
setMakeRequestHandler
@Inject
public void setMakeRequestHandler(MakeRequestHandler makeRequestHandler)
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Overrides:
doPost in class javax.servlet.http.HttpServlet
- Throws:
IOException
Copyright © 2007-2012. All Rights Reserved.