org.apache.tuscany.sca.binding.http.provider
Class HTTPBindingListenerServlet

java.lang.Object
  extended by HttpServlet
      extended by org.apache.tuscany.sca.binding.http.provider.HTTPBindingListenerServlet

public class HTTPBindingListenerServlet
extends HttpServlet

Servlet responsible for dispatching HTTP requests to the target component implementation.


Constructor Summary
HTTPBindingListenerServlet(Binding binding, MessageFactory messageFactory)
          Constructs a new HTTPServiceListenerServlet.
 
Method Summary
protected  void doDelete(HttpServletRequest request, HttpServletResponse response)
           
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPut(HttpServletRequest request, HttpServletResponse response)
           
 Invoker getConditionalDeleteInvoker()
           
 Invoker getConditionalGetInvoker()
           
 Invoker getConditionalPostInvoker()
           
 Invoker getConditionalPutInvoker()
           
 Invoker getDeleteInvoker()
           
 Invoker getGetInvoker()
           
 Invoker getPostInvoker()
           
 Invoker getPutInvoker()
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 void setConditionalDeleteInvoker(Invoker conditionalDeleteInvoker)
           
 void setConditionalGetInvoker(Invoker conditionalGetInvoker)
           
 void setConditionalPostInvoker(Invoker conditionalPostInvoker)
           
 void setConditionalPutInvoker(Invoker conditionalPutInvoker)
           
 void setDeleteInvoker(Invoker deleteInvoker)
           
 void setGetInvoker(Invoker getInvoker)
           
 void setPostInvoker(Invoker postInvoker)
           
 void setPutInvoker(Invoker putInvoker)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPBindingListenerServlet

public HTTPBindingListenerServlet(Binding binding,
                                  MessageFactory messageFactory)
Constructs a new HTTPServiceListenerServlet.

Method Detail

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       java.io.IOException
Throws:
ServletException
java.io.IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

doDelete

protected void doDelete(HttpServletRequest request,
                        HttpServletResponse response)
                 throws ServletException,
                        java.io.IOException
Throws:
ServletException
java.io.IOException

doPut

protected void doPut(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      java.io.IOException
Throws:
ServletException
java.io.IOException

getGetInvoker

public Invoker getGetInvoker()
Returns:
the getInvoker

setGetInvoker

public void setGetInvoker(Invoker getInvoker)
Parameters:
getInvoker - the getInvoker to set

getConditionalGetInvoker

public Invoker getConditionalGetInvoker()
Returns:
the conditionalGetInvoker

setConditionalGetInvoker

public void setConditionalGetInvoker(Invoker conditionalGetInvoker)
Parameters:
conditionalGetInvoker - the conditionalGetInvoker to set

getPutInvoker

public Invoker getPutInvoker()
Returns:
the putInvoker

setPutInvoker

public void setPutInvoker(Invoker putInvoker)
Parameters:
putInvoker - the putInvoker to set

getConditionalPutInvoker

public Invoker getConditionalPutInvoker()
Returns:
the conditionalPutInvoker

setConditionalPutInvoker

public void setConditionalPutInvoker(Invoker conditionalPutInvoker)
Parameters:
conditionalPutInvoker - the conditionalPutInvoker to set

getPostInvoker

public Invoker getPostInvoker()
Returns:
the postInvoker

setPostInvoker

public void setPostInvoker(Invoker postInvoker)
Parameters:
postInvoker - the postInvoker to set

getConditionalPostInvoker

public Invoker getConditionalPostInvoker()
Returns:
the conditionalPostInvoker

setConditionalPostInvoker

public void setConditionalPostInvoker(Invoker conditionalPostInvoker)
Parameters:
conditionalPostInvoker - the conditionalPostInvoker to set

getDeleteInvoker

public Invoker getDeleteInvoker()
Returns:
the deleteInvoker

setDeleteInvoker

public void setDeleteInvoker(Invoker deleteInvoker)
Parameters:
deleteInvoker - the deleteInvoker to set

getConditionalDeleteInvoker

public Invoker getConditionalDeleteInvoker()
Returns:
the conditionalDeleteInvoker

setConditionalDeleteInvoker

public void setConditionalDeleteInvoker(Invoker conditionalDeleteInvoker)
Parameters:
conditionalDeleteInvoker - the conditionalDeleteInvoker to set