com.googlecode.xremoting.core.servlet
Class XRemotingServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.googlecode.xremoting.core.servlet.XRemotingServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class XRemotingServlet
extends javax.servlet.http.HttpServlet

Base for a servlet which wishes to expose a service using XRemoting to the world via HTTP.

Author:
Roman Puchkovskiy
See Also:
Serialized Form

Constructor Summary
XRemotingServlet()
           
 
Method Summary
protected  void afterInvocation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void beforeInvocation(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  InvocationRestriction createInvocationRestriction(Class<?>[] interfaces)
           
protected  Invoker createInvoker()
           
protected  ProxyInvokingHelper createInvokingHelper()
           
protected  Serializer createSerializer()
           
protected  void doInit(javax.servlet.ServletConfig config)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  ClassLoader getInterfacesClassLoader()
           
protected abstract  Object getTarget()
           
 void init(javax.servlet.ServletConfig config)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, 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
 

Constructor Detail

XRemotingServlet

public XRemotingServlet()
Method Detail

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

doInit

protected void doInit(javax.servlet.ServletConfig config)
               throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

createInvocationRestriction

protected InvocationRestriction createInvocationRestriction(Class<?>[] interfaces)

getInterfacesClassLoader

protected ClassLoader getInterfacesClassLoader()

createSerializer

protected Serializer createSerializer()

createInvoker

protected Invoker createInvoker()

createInvokingHelper

protected ProxyInvokingHelper createInvokingHelper()

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

beforeInvocation

protected void beforeInvocation(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws javax.servlet.ServletException,
                                IOException
Throws:
javax.servlet.ServletException
IOException

afterInvocation

protected void afterInvocation(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws javax.servlet.ServletException,
                               IOException
Throws:
javax.servlet.ServletException
IOException

getTarget

protected abstract Object getTarget()


Copyright © 2010. All Rights Reserved.