org.robotframework.remoteserver.servlet
Class RemoteServerServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.xmlrpc.webserver.XmlRpcServlet
org.robotframework.remoteserver.servlet.RemoteServerServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, Context
public class RemoteServerServlet
- extends org.apache.xmlrpc.webserver.XmlRpcServlet
- implements Context
This servlet uses the same instance of a test library to process all requests on a given port
- See Also:
- Serialized Form
| Methods inherited from class org.apache.xmlrpc.webserver.XmlRpcServlet |
doPost, getAuthenticationHandler, getRequestProcessorFactoryFactory, getTypeConverterFactory, getXmlRpcServletServer, init, log, log, newPropertyHandlerMapping, newXmlRpcServer, setAuthenticationHandler, setRequestProcessorFactoryFactory, setTypeConverterFactory |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteServerServlet
public RemoteServerServlet(RemoteServer remoteServer,
Map<Integer,Class<?>> libraryMap)
newXmlRpcHandlerMapping
protected org.apache.xmlrpc.server.XmlRpcHandlerMapping newXmlRpcHandlerMapping()
throws org.apache.xmlrpc.XmlRpcException
- Overrides:
newXmlRpcHandlerMapping in class org.apache.xmlrpc.webserver.XmlRpcServlet
- Throws:
org.apache.xmlrpc.XmlRpcException
service
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Overrides:
service in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
getRequest
public static javax.servlet.http.HttpServletRequest getRequest()
- The request is shared so that more context, such as the client address, can be obtained
- Returns:
HttpServletRequest object that contains the request the client has made of the servlet
getPage
protected String getPage()
getLibrary
public RemoteLibrary getLibrary()
- Specified by:
getLibrary in interface Context
- Returns:
RemoteLibrary in the current context
createLibraryFactory
protected RemoteLibraryFactory createLibraryFactory()
getRemoteServer
public RemoteServer getRemoteServer()
- Specified by:
getRemoteServer in interface Context
- Returns:
RemoteServer in the current context
Copyright © 2012. All Rights Reserved.