org.ogf.graap.wsag.wsrf.impl
Class NegotiationFactoryCapability

java.lang.Object
  extended by org.apache.muse.core.AbstractCapability
      extended by org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
          extended by org.ogf.graap.wsag.wsrf.WSAG4JCapability
              extended by org.ogf.graap.wsag.wsrf.impl.NegotiationFactoryCapability
All Implemented Interfaces:
org.apache.muse.core.Capability, org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.Shutdown, org.apache.muse.ws.resource.WsResourceCapability

public class NegotiationFactoryCapability
extends WSAG4JCapability

Author:
hrasheed

Constructor Summary
NegotiationFactoryCapability()
           
 
Method Summary
protected  EndpointReferenceType addNewNegotiationWsResource(Negotiation negotiation)
          Creates a new Negotiation WS-Resource and returns the EPR.
 QName[] getPropertyNames()
           
 InitiateNegotiationOutputType initiateNegotiation(InitiateNegotiationInputDocument initiateInput)
          Creates a new negotiation instance.
 
Methods inherited from class org.ogf.graap.wsag.wsrf.WSAG4JCapability
toElement, toElementArray
 
Methods inherited from class org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
createGettersAndSetters, deleteProperty, getGetter, getProperty, getPropertyElements, getSetter, getWsResource, initialize, insertProperty, invokeMethod, setResource, updateProperty
 
Methods inherited from class org.apache.muse.core.AbstractCapability
getActions, getCapabilityURI, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getMessageHandler, getPersistence, getResource, hasBeenInitialized, hasBeenShutdown, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setInitializationParameters, setLog, setMessageHandler, setMessageHandlers, setPersistence, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.muse.core.Capability
getActions, getCapabilityURI, getEnvironment, getLog, getMessageHandler, getPersistence, getResource, initializeCompleted, prepareShutdown, setCapabilityURI, setEnvironment, setLog, setMessageHandlers, setPersistence
 
Methods inherited from interface org.apache.muse.core.Initialization
hasBeenInitialized
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 

Constructor Detail

NegotiationFactoryCapability

public NegotiationFactoryCapability()
Method Detail

getPropertyNames

public QName[] getPropertyNames()
Overrides:
getPropertyNames in class org.apache.muse.ws.resource.impl.AbstractWsResourceCapability
Returns:
the resource property QNames

initiateNegotiation

public InitiateNegotiationOutputType initiateNegotiation(InitiateNegotiationInputDocument initiateInput)
                                                  throws org.apache.muse.ws.addressing.soap.SoapFault
Creates a new negotiation instance.

Parameters:
initiateInput - the negotiation context + extensions
Returns:
the initiate negotiation response document
Throws:
org.apache.muse.ws.addressing.soap.SoapFault - generic SOAP fault

addNewNegotiationWsResource

protected EndpointReferenceType addNewNegotiationWsResource(Negotiation negotiation)
                                                     throws AgreementFactoryFault
Creates a new Negotiation WS-Resource and returns the EPR.

Parameters:
negotiation - the negotiation instance for which the WS resource is created
Returns:
the endpoint of the negotiation resource
Throws:
AgreementFactoryFault - an error occurred while creating the WS resource


Copyright © 2008-2012. All Rights Reserved.