biz.hammurapi.remoting.http
Class HttpRemoteInvocationHandler
java.lang.Object
biz.hammurapi.remoting.http.HttpRemoteInvocationHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class HttpRemoteInvocationHandler
- extends java.lang.Object
- implements java.lang.reflect.InvocationHandler
Constructor Summary |
HttpRemoteInvocationHandler(HttpReference reference,
java.lang.String cookie,
org.apache.commons.httpclient.HttpConnectionManager connectionManager,
java.lang.ClassLoader classLoader)
|
Method Summary |
protected java.lang.Object |
createProxy(HttpReference reference)
Creates proxy from reference |
byte[] |
getResource(java.lang.String resourceName)
Used for remote class and resource loading. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRemoteInvocationHandler
public HttpRemoteInvocationHandler(HttpReference reference,
java.lang.String cookie,
org.apache.commons.httpclient.HttpConnectionManager connectionManager,
java.lang.ClassLoader classLoader)
getResource
public byte[] getResource(java.lang.String resourceName)
- Used for remote class and resource loading.
- Parameters:
name
-
- Returns:
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
createProxy
protected java.lang.Object createProxy(HttpReference reference)
throws java.lang.ClassNotFoundException
- Creates proxy from reference
- Parameters:
reference
-
- Returns:
-
- Throws:
java.lang.ClassNotFoundException
Copyright © 2006 Hammurapi Group. All Rights Reserved.