2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.binding.jsonrpc.provider
Class JSONRPCServiceServlet
java.lang.Object
JSONRPCServlet
org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServiceServlet
public class JSONRPCServiceServlet
- extends JSONRPCServlet
Servlet that handles JSON-RPC requests invoking SCA services.
There is an instance of this Servlet for each
Method Summary |
protected byte[] |
handleJSONRPCMethodInvocation(HttpServletRequest request,
HttpServletResponse response,
JSONObject jsonReq)
|
protected byte[] |
handleJSONRPCSystemInvocation(HttpServletRequest request,
HttpServletResponse response,
java.lang.String requestData)
|
protected void |
handleSMDRequest(HttpServletRequest request,
HttpServletResponse response)
handles requests for the SMD descriptor for a service |
void |
init(ServletConfig config)
Override to do nothing as the JSONRPCServlet is setup by the
service method in this class. |
void |
service(HttpServletRequest request,
HttpServletResponse response)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONRPCServiceServlet
public JSONRPCServiceServlet(Binding binding,
RuntimeComponentService componentService,
InterfaceContract serviceContract,
java.lang.Class<?> serviceInterface,
java.lang.Object serviceInstance)
init
public void init(ServletConfig config)
- Override to do nothing as the JSONRPCServlet is setup by the
service method in this class.
service
public void service(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException
- Throws:
java.io.IOException
handleSMDRequest
protected void handleSMDRequest(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException,
java.io.UnsupportedEncodingException
- handles requests for the SMD descriptor for a service
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
handleJSONRPCSystemInvocation
protected byte[] handleJSONRPCSystemInvocation(HttpServletRequest request,
HttpServletResponse response,
java.lang.String requestData)
throws java.io.IOException,
java.io.UnsupportedEncodingException
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
handleJSONRPCMethodInvocation
protected byte[] handleJSONRPCMethodInvocation(HttpServletRequest request,
HttpServletResponse response,
JSONObject jsonReq)
throws java.io.IOException,
java.io.UnsupportedEncodingException
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException