org.jboss.remoting.transport.http
Class HTTPClientInvoker
java.lang.Object
org.jboss.remoting.AbstractInvoker
org.jboss.remoting.RemoteClientInvoker
org.jboss.remoting.transport.http.HTTPClientInvoker
- All Implemented Interfaces:
- ClientInvoker, Invoker
- Direct Known Subclasses:
- HTTPSClientInvoker
- public class HTTPClientInvoker
- extends RemoteClientInvoker
HTTP client invoker. Used for making http requests on http/servlet invoker.
- Author:
- Tom Elrod
Field Summary |
protected org.jboss.logging.Logger |
log
|
Method Summary |
protected java.net.HttpURLConnection |
createURLConnection(java.lang.String url,
java.util.Map metadata)
|
protected java.lang.String |
getDefaultDataType()
Each implementation of the remote client invoker should have
a default data type that is uses in the case it is not specified
in the invoker locator uri. |
protected void |
handleConnect()
subclasses must implement this method to provide a hook to connect to the remote server, if this applies
to the specific transport. |
protected void |
handleDisconnect()
subclasses must implement this method to provide a hook to disconnect from the remote server, if this applies
to the specific transport. |
protected java.lang.Object |
transport(java.lang.String sessionId,
java.lang.Object invocation,
java.util.Map metadata,
Marshaller marshaller,
UnMarshaller unmarshaller)
|
Methods inherited from class org.jboss.remoting.RemoteClientInvoker |
connect, createSocketFactory, disconnect, finalize, getMarshaller, getSocketFactory, getUnMarshaller, invoke, isConnected, postProcess, preProcess, setMarshaller, setUnMarshaller |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.jboss.logging.Logger log
HTTPClientInvoker
public HTTPClientInvoker(InvokerLocator locator)
HTTPClientInvoker
public HTTPClientInvoker(InvokerLocator locator,
java.util.Map configuration)
transport
protected java.lang.Object transport(java.lang.String sessionId,
java.lang.Object invocation,
java.util.Map metadata,
Marshaller marshaller,
UnMarshaller unmarshaller)
throws java.io.IOException,
ConnectionFailedException
- Specified by:
transport
in class RemoteClientInvoker
- Parameters:
sessionId
- invocation
- marshaller
-
- Returns:
-
- Throws:
java.io.IOException
ConnectionFailedException
createURLConnection
protected java.net.HttpURLConnection createURLConnection(java.lang.String url,
java.util.Map metadata)
throws java.io.IOException
- Throws:
java.io.IOException
handleConnect
protected void handleConnect()
throws ConnectionFailedException
- subclasses must implement this method to provide a hook to connect to the remote server, if this applies
to the specific transport. However, in some transport implementations, this may not make must difference since
the connection is not persistent among invocations, such as SOAP. In these cases, the method should
silently return without any processing.
- Specified by:
handleConnect
in class RemoteClientInvoker
- Throws:
ConnectionFailedException
handleDisconnect
protected void handleDisconnect()
- subclasses must implement this method to provide a hook to disconnect from the remote server, if this applies
to the specific transport. However, in some transport implementations, this may not make must difference since
the connection is not persistent among invocations, such as SOAP. In these cases, the method should
silently return without any processing.
- Specified by:
handleDisconnect
in class RemoteClientInvoker
getDefaultDataType
protected java.lang.String getDefaultDataType()
- Each implementation of the remote client invoker should have
a default data type that is uses in the case it is not specified
in the invoker locator uri.
- Specified by:
getDefaultDataType
in class RemoteClientInvoker
- Returns:
Copyright ? 1998-2005 JBoss Inc . All Rights Reserved.