net.sourceforge.hiveremoting.caucho
Class CauchoRemotingServlet
java.lang.Object
javax.servlet.GenericServlet
net.sourceforge.hiveremoting.caucho.CauchoRemotingServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class CauchoRemotingServlet
- extends javax.servlet.GenericServlet
Servlet class that "publishes" HiveMind services as remote services,
accessible through Caucho Hessian or Burlap protocol.
All services to be published must be defined in RemoteServices
configuration point.
- Author:
- Jean-Francois Poilpret
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.GenericServlet |
destroy, 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 |
_init
protected boolean _init
_services
protected java.util.Map<java.lang.String,RemoteServiceInvoker> _services
_factory
protected com.caucho.hessian.io.SerializerFactory _factory
CauchoRemotingServlet
public CauchoRemotingServlet()
getServletInfo
public java.lang.String getServletInfo()
- Specified by:
getServletInfo
in interface javax.servlet.Servlet
- Overrides:
getServletInfo
in class javax.servlet.GenericServlet
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
checkInit
protected void checkInit(javax.servlet.http.HttpServletRequest request)
initServices
protected void initServices(javax.servlet.http.HttpServletRequest request)
getRegistry
protected org.apache.hivemind.Registry getRegistry(javax.servlet.http.HttpServletRequest request)
- Retrieve the HiveMind registry. Uses HiveMindFilter by default.
- Parameters:
request
- current http request
- Returns:
- the HiveMind registry
initHessianService
protected void initHessianService(PublishServiceContribution contrib,
java.lang.String urlPath)
initBurlapService
protected void initBurlapService(PublishServiceContribution contrib,
java.lang.String urlPath)
sendError
protected void sendError(javax.servlet.http.HttpServletResponse res,
java.lang.String msg)
throws java.io.IOException,
javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
service
public void service(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Specified by:
service
in interface javax.servlet.Servlet
- Specified by:
service
in class javax.servlet.GenericServlet
- Throws:
java.io.IOException
javax.servlet.ServletException