public class SampleClient extends Object implements javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle
This client is used to manage a container and to test it.
| Modifier and Type | Field and Description |
|---|---|
static String |
INONLY |
static String |
INOPTIONALOUT |
static String |
INOUT |
static String |
ROBUSTINONLY |
| Constructor and Description |
|---|
SampleClient() |
| Modifier and Type | Method and Description |
|---|---|
protected InputSource |
createSource(String msg)
Create a source from a string
|
protected DocumentFragment |
createWSAToDocFrag(QName name,
String wsaToValue)
Create the WSA:TO document fragment
|
String |
getAsReference(javax.jbi.servicedesc.ServiceEndpoint se) |
String |
getDescription(javax.jbi.servicedesc.ServiceEndpoint se)
Get the service description
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpoints() |
ObjectName |
getExtensionMBeanName() |
String |
getInterfaces(javax.jbi.servicedesc.ServiceEndpoint se)
Get the service interfaces
|
javax.jbi.component.ComponentLifeCycle |
getLifeCycle() |
Document |
getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint arg0) |
javax.jbi.component.ServiceUnitManager |
getServiceUnitManager() |
void |
init(javax.jbi.component.ComponentContext context) |
boolean |
isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint arg0,
javax.jbi.messaging.MessageExchange arg1) |
boolean |
isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint arg0,
javax.jbi.messaging.MessageExchange arg1) |
javax.jbi.servicedesc.ServiceEndpoint |
resolveDescription(String text) |
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(DocumentFragment arg0) |
void |
send(String itf,
String service,
String op,
String endpoint,
String content,
String type,
List<File> attachmentFiles,
String properties,
long syncTime)
Sends a message through Petals JBI
|
void |
shutDown() |
void |
start() |
void |
stop() |
public static final String INONLY
public static final String INOUT
public static final String INOPTIONALOUT
public static final String ROBUSTINONLY
public void init(javax.jbi.component.ComponentContext context)
throws javax.jbi.JBIException
init in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIExceptionpublic void start()
throws javax.jbi.JBIException
start in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIExceptionpublic void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIExceptionpublic void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIExceptionpublic javax.jbi.component.ComponentLifeCycle getLifeCycle()
getLifeCycle in interface javax.jbi.component.Componentpublic Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint arg0)
getServiceDescription in interface javax.jbi.component.Componentpublic javax.jbi.component.ServiceUnitManager getServiceUnitManager()
getServiceUnitManager in interface javax.jbi.component.Componentpublic boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint arg0,
javax.jbi.messaging.MessageExchange arg1)
isExchangeWithConsumerOkay in interface javax.jbi.component.Componentpublic boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint arg0,
javax.jbi.messaging.MessageExchange arg1)
isExchangeWithProviderOkay in interface javax.jbi.component.Componentpublic javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(DocumentFragment arg0)
resolveEndpointReference in interface javax.jbi.component.Componentpublic ObjectName getExtensionMBeanName()
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCyclepublic void send(String itf, String service, String op, String endpoint, String content, String type, List<File> attachmentFiles, String properties, long syncTime)
itf - the target JBI interface, optional if endpoint specifiedservice - the target JBI serviceop - content - the message contenttype - attachmentFiles - the message's attached files (if any)properties - the message's propertiessyncTime - public javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints()
public javax.jbi.servicedesc.ServiceEndpoint resolveDescription(String text)
text - public String getDescription(javax.jbi.servicedesc.ServiceEndpoint se)
se - public String getInterfaces(javax.jbi.servicedesc.ServiceEndpoint se)
se - public String getAsReference(javax.jbi.servicedesc.ServiceEndpoint se)
se - protected InputSource createSource(String msg)
msg - protected DocumentFragment createWSAToDocFrag(QName name, String wsaToValue)
wsaToValue - Copyright © 2005-2018 Linagora. All Rights Reserved.