public class HttpInvoker extends Object implements RemoteInvoker
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_PASSWORD
Property name for password used for authentication.
|
static String |
AUTH_USERNAME
Property name for username used for authentication.
|
static String |
SERVICE_HEADER
HTTP header used to communicate the domain name for a service invocation.
|
static String |
WS_SECURITY
Property name for Web Service Security header element.
|
static String |
WS_SECURITY_HEADER
HTTP header used to communicate the Web Service Security header.
|
static QName |
WS_SECURITY_QNAME
Property name represented by QName for Web Service Security header element.
|
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.
|
HttpInvoker |
setProperty(Object key,
Object value)
Sets invoker property.
|
public static final String SERVICE_HEADER
public static final String WS_SECURITY_HEADER
public static final String AUTH_USERNAME
public static final String AUTH_PASSWORD
public static final String WS_SECURITY
public static final QName WS_SECURITY_QNAME
public HttpInvoker(String endpoint)
endpoint
- url stringpublic HttpInvoker(URL endpoint)
endpoint
- the endpoint URLpublic RemoteMessage invoke(RemoteMessage request) throws IOException
RemoteInvoker
invoke
in interface RemoteInvoker
request
- messageIOException
- remote communication failurepublic HttpInvoker setProperty(Object key, Object value)
key
- property keyvalue
- property valueCopyright © 2013–2019 JBoss by Red Hat. All rights reserved.