public class HttpInvoker extends Object implements RemoteInvoker
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_HEADER
HTTP header used to communicate the domain name for a service invocation.
|
| Constructor and Description |
|---|
HttpInvoker(String endpoint)
Create a new HttpInvoker from the specified URL string.
|
HttpInvoker(URL endpoint)
Create a new HttpInvoker with the specified URL.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteMessage |
invoke(RemoteMessage request)
Invoke a remote service using the specified RemoteMessage.
|
public static final String SERVICE_HEADER
public HttpInvoker(String endpoint)
endpoint - url stringpublic HttpInvoker(URL endpoint)
endpoint - the endpoint URLpublic RemoteMessage invoke(RemoteMessage request) throws IOException
RemoteInvokerinvoke in interface RemoteInvokerrequest - messageIOException - remote communication failureCopyright © 2013-2014 JBoss by Red Hat. All Rights Reserved.