当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 server API Documentation 英文版文档
HttpInvokerProxy (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档
org.jboss.invocation.http.interfaces
Class HttpInvokerProxy
java.lang.Object
org.jboss.invocation.http.interfaces.HttpInvokerProxy
- All Implemented Interfaces:
- Externalizable, Invoker, Remote, Serializable
- public class HttpInvokerProxy
- extends Object
- implements Invoker, Externalizable
The client side Http invoker proxy that posts an invocation to the
InvokerServlet using the HttpURLConnection created from the proxy
externalURL.
- Version:
- $Revision: 1.7 $
- Author:
- Scott.Stark@jboss.org
- See Also:
- Serialized Form
Fields inherited from interface org.jboss.invocation.Invoker |
ID |
externalURLValue
protected String externalURLValue
externalURL
protected transient URL externalURL
HttpInvokerProxy
public HttpInvokerProxy()
HttpInvokerProxy
public HttpInvokerProxy(String externalURLValue)
getServerHostName
public String getServerHostName()
throws Exception
- Description copied from interface:
Invoker
- 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
- Throws:
Exception
getExternalURLValue
public String getExternalURLValue()
getExternalURL
public URL getExternalURL()
toString
public String toString()
invoke
public Object invoke(Invocation invocation)
throws 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
- Parameters:
invocation
- A pointer to the invocation object
- Returns:
- Return value of method invocation.
- Throws:
Exception
- Failed to invoke method.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Externalize this instance.
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Un-externalize this instance.
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.