|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.engine.sampleclient.SampleClient
public class SampleClient
Main class of the SampleClient component, this client is used to manage a container and to test it
| Field Summary | |
|---|---|
static java.lang.String |
INONLY
|
static java.lang.String |
INOPTIONALOUT
|
static java.lang.String |
INOUT
|
static java.lang.String |
ROBUSTINONLY
|
| Constructor Summary | |
|---|---|
SampleClient()
|
|
| Method Summary | |
|---|---|
protected org.xml.sax.InputSource |
createSource(java.lang.String msg)
Create a source from a string |
protected org.w3c.dom.DocumentFragment |
createWSAToDocFrag(java.lang.String wsaToValue)
Create the WSA:TO document fragment |
java.lang.String |
getAsReference(javax.jbi.servicedesc.ServiceEndpoint se)
|
java.lang.String |
getDescription(javax.jbi.servicedesc.ServiceEndpoint se)
Get the service description |
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpoints()
|
javax.management.ObjectName |
getExtensionMBeanName()
|
java.lang.String |
getInterfaces(javax.jbi.servicedesc.ServiceEndpoint se)
Get the service interfaces |
javax.jbi.component.ComponentLifeCycle |
getLifeCycle()
|
org.w3c.dom.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(java.lang.String text)
|
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(org.w3c.dom.DocumentFragment arg0)
|
void |
send(java.lang.String itf,
java.lang.String service,
java.lang.String op,
java.lang.String endpoint,
java.lang.String content,
java.lang.String type,
java.util.List<java.io.File> attachmentFiles,
java.lang.String properties,
long syncTime)
Sends a message through Petals JBI |
void |
shutDown()
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INONLY
public static final java.lang.String INOUT
public static final java.lang.String INOPTIONALOUT
public static final java.lang.String ROBUSTINONLY
| Constructor Detail |
|---|
public SampleClient()
| Method Detail |
|---|
public void init(javax.jbi.component.ComponentContext context)
throws javax.jbi.JBIException
init in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIException
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIException
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.component.ComponentLifeCyclejavax.jbi.JBIException
public 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 org.w3c.dom.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.Component
public boolean isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint arg0,
javax.jbi.messaging.MessageExchange arg1)
isExchangeWithConsumerOkay in interface javax.jbi.component.Component
public boolean isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint arg0,
javax.jbi.messaging.MessageExchange arg1)
isExchangeWithProviderOkay in interface javax.jbi.component.Componentpublic javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment arg0)
resolveEndpointReference in interface javax.jbi.component.Componentpublic javax.management.ObjectName getExtensionMBeanName()
getExtensionMBeanName in interface javax.jbi.component.ComponentLifeCycle
public void send(java.lang.String itf,
java.lang.String service,
java.lang.String op,
java.lang.String endpoint,
java.lang.String content,
java.lang.String type,
java.util.List<java.io.File> attachmentFiles,
java.lang.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(java.lang.String text)
text -
public java.lang.String getDescription(javax.jbi.servicedesc.ServiceEndpoint se)
se -
public java.lang.String getInterfaces(javax.jbi.servicedesc.ServiceEndpoint se)
se -
public java.lang.String getAsReference(javax.jbi.servicedesc.ServiceEndpoint se)
se -
protected org.xml.sax.InputSource createSource(java.lang.String msg)
msg -
protected org.w3c.dom.DocumentFragment createWSAToDocFrag(java.lang.String wsaToValue)
wsaToValue -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||