org.ogf.graap.wsag.wsrf
Class AbstractWsResource

java.lang.Object
  extended by org.apache.muse.core.SimpleResource
      extended by org.apache.muse.ws.resource.impl.SimpleWsResource
          extended by org.ogf.graap.wsag.wsrf.AbstractWsResource
All Implemented Interfaces:
org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.Resource, org.apache.muse.core.Shutdown, org.apache.muse.ws.resource.WsResource
Direct Known Subclasses:
AgreementAcceptanceWsResource, AgreementFactoryWsResource, AgreementWsResource, NegotiationWsResource

public abstract class AbstractWsResource
extends org.apache.muse.ws.resource.impl.SimpleWsResource

Abstract implementation of a WSRF resource. This class implements basic mechanisms to use XmlBeans EPRs with a WSRF resource. Moreover, the server identity is added automatically to EPR meta data when the WSRF resource is initialized. This is done for convenience when clients want to delegate trust to a service that is implemented as WSRF resource.

Author:
Oliver Waeldrich

Constructor Summary
AbstractWsResource()
           
 
Method Summary
 void addCapability(org.apache.muse.core.Capability arg0)
           
 org.apache.muse.core.Capability getCapability(String arg0)
           
 Collection getCapabilityURIs()
           
abstract  QName getInterfaceName()
           
 boolean hasCapability(String arg0)
           
 void initialize()
          
 boolean isInitialized()
          Returns true only after the resource initialization process is complete.
 void setEndpointReference(EndpointReferenceType epr)
          Sets the EPR for this WS-Resource and adds the server identity to the meta data of the EPR.
 
Methods inherited from class org.apache.muse.ws.resource.impl.SimpleWsResource
createMetadataDescriptor, createPropertiesSchema, createPropertyCollection, getPropertyCollection
 
Methods inherited from class org.apache.muse.core.SimpleResource
addCapability, getCapability, getCapabilityActions, getCapabilityForAction, getCapabilityURIs, getContextPath, getEndpointReference, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getResourceManager, getWsdlPath, getWsdlPortType, hasBeenInitialized, hasBeenShutdown, hasCapability, initializeCapabilities, invoke, setContextPath, setEndpointReference, setEnvironment, setInitializationParameters, setLog, setResourceManager, setWsdlPath, setWsdlPortType, shutdown, shutdownCapabilities, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.muse.core.Resource
getContextPath, getEndpointReference, getEnvironment, getLog, getResourceManager, getWsdlPath, getWsdlPortType, invoke, setContextPath, setEndpointReference, setEnvironment, setLog, setResourceManager, setWsdlPath, setWsdlPortType
 
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

AbstractWsResource

public AbstractWsResource()
Method Detail

getInterfaceName

public abstract QName getInterfaceName()
Returns:
the QName of the implemented port type

setEndpointReference

public void setEndpointReference(EndpointReferenceType epr)
Sets the EPR for this WS-Resource and adds the server identity to the meta data of the EPR.

Parameters:
epr - the endpoint reference of this resource

initialize

public void initialize()
                throws org.apache.muse.ws.addressing.soap.SoapFault

Specified by:
initialize in interface org.apache.muse.core.Initialization
Overrides:
initialize in class org.apache.muse.ws.resource.impl.SimpleWsResource
Throws:
org.apache.muse.ws.addressing.soap.SoapFault
See Also:
SimpleWsResource.initialize()

isInitialized

public boolean isInitialized()
Returns true only after the resource initialization process is complete. By default an additional schema validation is performed where the properties of the agreement are accessed.

Returns:
the initialized

addCapability

public void addCapability(org.apache.muse.core.Capability arg0)

getCapability

public org.apache.muse.core.Capability getCapability(String arg0)

getCapabilityURIs

public Collection getCapabilityURIs()

hasCapability

public boolean hasCapability(String arg0)


Copyright © 2008-2012. All Rights Reserved.