com.metaparadigm.jsonrpc
Class HttpSessionArgResolver

java.lang.Object
  extended by com.metaparadigm.jsonrpc.HttpSessionArgResolver
All Implemented Interfaces:
LocalArgResolver

public class HttpSessionArgResolver
extends java.lang.Object
implements LocalArgResolver

An LocalArgResolver implementation that is registered by default on the JSONRPCBridge and will replace an HttpSession argument on a called method with the current session. If no session exists, a session will be created.


Constructor Summary
HttpSessionArgResolver()
           
 
Method Summary
 java.lang.Object resolveArg(java.lang.Object context)
          Resolve an argument locally using the given context information.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionArgResolver

public HttpSessionArgResolver()
Method Detail

resolveArg

public java.lang.Object resolveArg(java.lang.Object context)
                            throws LocalArgResolveException
Description copied from interface: LocalArgResolver
Resolve an argument locally using the given context information.

Specified by:
resolveArg in interface LocalArgResolver
Parameters:
context - The transport context (the HttpServletRequest object in the case of the HTTP transport).
Throws:
LocalArgResolveException


Copyright © 2005 Metaparadigm Pte Ltd.