org.jboss.invocation.http.interfaces
Class HttpInvokerProxy
java.lang.Object
org.jboss.invocation.http.interfaces.HttpInvokerProxy
- All Implemented Interfaces:
- java.io.Externalizable, Invoker (src) , java.rmi.Remote, java.io.Serializable
- public class HttpInvokerProxy
- extends java.lang.Object
- implements Invoker (src) , java.io.Externalizable
The client side Http invoker proxy that posts an invocation to the
InvokerServlet using the HttpURLConnection created from the proxy
externalURL.
- See Also:
- Serialized Form
Method Summary |
java.net.URL |
getExternalURL()
|
java.lang.String |
getExternalURLValue()
|
java.lang.String |
getServerHostName()
A free form String identifier for this delegate invoker, can be clustered or target node
This should evolve in a more advanced meta-inf object |
java.lang.Object |
invoke(Invocation (src) invocation)
This method builds a MarshalledInvocation from the invocation passed
in and then does a post to the target URL. |
void |
readExternal(java.io.ObjectInput in)
Un-externalize this instance. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
Externalize this instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
externalURLValue
protected java.lang.String externalURLValue
externalURL
protected transient java.net.URL externalURL
HttpInvokerProxy
public HttpInvokerProxy()
HttpInvokerProxy
public HttpInvokerProxy(java.lang.String externalURLValue)
getServerHostName
public java.lang.String getServerHostName()
throws java.lang.Exception
- Description copied from interface:
Invoker (src)
- A free form String identifier for this delegate invoker, can be clustered or target node
This should evolve in a more advanced meta-inf object
- Specified by:
getServerHostName
in interface Invoker (src)
- Throws:
java.lang.Exception
getExternalURLValue
public java.lang.String getExternalURLValue()
getExternalURL
public java.net.URL getExternalURL()
toString
public java.lang.String toString()
invoke
public java.lang.Object invoke(Invocation (src) invocation)
throws java.lang.Exception
- This method builds a MarshalledInvocation from the invocation passed
in and then does a post to the target URL.
- Specified by:
invoke
in interface Invoker (src)
- Parameters:
invocation
- A pointer to the invocation object
- Returns:
- Return value of method invocation.
- Throws:
java.lang.Exception
- Failed to invoke method.
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Externalize this instance.
- Specified by:
writeExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Un-externalize this instance.
- Specified by:
readExternal
in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException