org.directwebremoting.jsonrpc
Class JsonRpcCallHandler

java.lang.Object
  extended by org.directwebremoting.jsonrpc.JsonRpcCallHandler
All Implemented Interfaces:
Handler

public class JsonRpcCallHandler
extends java.lang.Object
implements Handler

A Handler for JSON-RPC calls.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
JsonRpcCallHandler()
           
 
Method Summary
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handle a URL request that has been mapped to this Handler
 void setAccessControl(AccessControl accessControl)
          Accessor for the security manager
 void setConverterManager(ConverterManager converterManager)
          Accessor for the ConverterManager that we configure
 void setJsonRpcEnabled(boolean jsonRpcEnabled)
          Are we allowing remote hosts to contact us using JSON?
 void setModuleManager(ModuleManager moduleManager)
          Accessor for the ModuleManager that we configure
 void setRemoter(Remoter remoter)
          Setter for the remoter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonRpcCallHandler

public JsonRpcCallHandler()
Method Detail

handle

public void handle(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException
Description copied from interface: Handler
Handle a URL request that has been mapped to this Handler

Specified by:
handle in interface Handler
Parameters:
request - The HTTP request data
response - Where we write the HTTP response data
Throws:
java.io.IOException - If the write process fails

setConverterManager

public void setConverterManager(ConverterManager converterManager)
Accessor for the ConverterManager that we configure

Parameters:
converterManager -

setJsonRpcEnabled

public void setJsonRpcEnabled(boolean jsonRpcEnabled)
Are we allowing remote hosts to contact us using JSON?


setRemoter

public void setRemoter(Remoter remoter)
Setter for the remoter

Parameters:
remoter - The new remoter

setAccessControl

public void setAccessControl(AccessControl accessControl)
Accessor for the security manager

Parameters:
accessControl - The accessControl to set.

setModuleManager

public void setModuleManager(ModuleManager moduleManager)
Accessor for the ModuleManager that we configure

Parameters:
moduleManager -

Copyright 2008