|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.client.api.RemoteClient org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient org.ogf.graap.wsag.client.wsrf.impl.WsrfAgreementFactoryService
public class WsrfAgreementFactoryService
Default implementation of an agreement factory service client.
AgreementFactoryService
Field Summary |
---|
Fields inherited from class org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient |
---|
ANONYMOUS_EPR, EXTRA_HEADERS |
Constructor Summary | |
---|---|
WsrfAgreementFactoryService(EndpointReferenceType epr,
Properties properties,
ISecurityProperties securityProperties)
Instantiates an agreement factory service client for the given EPR. |
Method Summary | |
---|---|
AgreementClient |
createAgreement(AgreementOffer offer)
|
AgreementClient |
createPendingAgreement(AgreementOffer offer)
|
AgreementClient |
createPendingAgreement(AgreementOffer offer,
EndpointReferenceType acceptanceEPR)
|
String |
getResourceId()
|
AgreementTemplateType[] |
getTemplates()
|
WsrfResourceClient |
getWebServiceClient()
|
NegotiationClient |
initiateNegotiation(NegotiationContextType context)
|
NegotiationClient |
initiateNegotiation(NegotiationContextType context,
EndpointReferenceType initiatorEPR)
Initiates a new negotiation process with a wsag4j server. |
Methods inherited from class org.ogf.graap.wsag.client.wsrf.impl.WsrfResourceClient |
---|
deleteResourceProperty, destroy, getDefaultSOAPClient, getEndpoint, getMultipleResourceProperties, getProperties, getResourceProperty, getResourcePropertyDocument, getSecurityProperties, invoke, isUseDefaultSOAPClient, isUsingTrace, queryResourceProperties, setDefaultSOAPClient, setProperties, setResourceProperties, setTerminationTime, setTrace, setUseDefaultSOAPClient, updateResourceProperty |
Methods inherited from class org.ogf.graap.wsag.client.api.RemoteClient |
---|
getRemoteReference, setSecurityProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsrfAgreementFactoryService(EndpointReferenceType epr, Properties properties, ISecurityProperties securityProperties)
epr
- the agreement factory service endpoint referencesecurityProperties
- the security properties to useMethod Detail |
---|
public WsrfResourceClient getWebServiceClient()
public AgreementClient createAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnavailableException, ResourceUnknownException
AgreementFactoryException
ResourceUnavailableException
ResourceUnknownException
public AgreementClient createPendingAgreement(AgreementOffer offer) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
AgreementFactoryException
ResourceUnknownException
ResourceUnavailableException
public AgreementClient createPendingAgreement(AgreementOffer offer, EndpointReferenceType acceptanceEPR) throws AgreementFactoryException, ResourceUnknownException, ResourceUnavailableException
AgreementFactoryException
ResourceUnknownException
ResourceUnavailableException
public NegotiationClient initiateNegotiation(NegotiationContextType context) throws NegotiationFactoryException, ResourceUnknownException, ResourceUnavailableException
NegotiationFactoryException
ResourceUnknownException
ResourceUnavailableException
public NegotiationClient initiateNegotiation(NegotiationContextType context, EndpointReferenceType initiatorEPR) throws NegotiationFactoryException, ResourceUnknownException, ResourceUnavailableException
context
- the negotiation contextinitiatorEPR
- the endpoint of the wsag4j server
NegotiationFactoryException
- The negotiation process was not initiated.
ResourceUnknownException
- the remote resource is unknown
ResourceUnavailableException
- the remote resource is unavailablepublic AgreementTemplateType[] getTemplates() throws ResourceUnavailableException, ResourceUnknownException
ResourceUnavailableException
ResourceUnknownException
public String getResourceId() throws ResourceUnknownException, ResourceUnavailableException
ResourceUnknownException
ResourceUnavailableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |