org.apache.ws.resource.impl
Class ResourceCapabilityImpl

java.lang.Object
  extended byorg.apache.ws.resource.impl.ResourceCapabilityImpl
All Implemented Interfaces:
ResourceCapability
Direct Known Subclasses:
ResourceDefinitionImpl

public class ResourceCapabilityImpl
extends java.lang.Object
implements ResourceCapability

A ResourceCapability implementation.

Author:
Ian Springer (ian DOT springer AT hp DOT com)

Constructor Summary
ResourceCapabilityImpl(javax.wsdl.Definition def, javax.wsdl.PortType portType, java.net.URL baseURL)
          Creates a new ResourceCapabilityImpl based on the specified JWSDL definition and portType.
 
Method Summary
 java.lang.String[] getCustomOperationNames()
          DOCUMENT_ME
 javax.xml.namespace.QName[] getCustomPropertyNames()
           
 javax.wsdl.Definition getDefinition()
          DOCUMENT_ME
 java.util.Map getImplementedResourceCapabilities()
           
 java.lang.String getMetadataDescriptorLocation()
          Returns the location of the WS-RMD metadata definitions document, as specified by the wsrmd:MetadataDescriptorLocation attribute on the portType, or null if this resource does not define a metadata descriptor.
 javax.xml.namespace.QName getMetadataDescriptorName()
          Returns the name of the WS-RMD metadata descriptor, as specified by the wsrmd:MetadataDescriptor attribute on the portType, or null if this resource does not define a metadata descriptor.
 javax.wsdl.PortType getPortType()
          DOCUMENT_ME
 javax.xml.namespace.QName getPropertiesDocumentName()
          Returns the name of the resource properties document element, as specified by the wsrf-rp:ResourceProperties attribute on the portType, or null if this resource does not define a properties document.
 javax.xml.namespace.QName[] getPropertyNames()
          DOCUMENT_ME
 boolean hasProperties()
           
 boolean implementsResourceCapability(javax.xml.namespace.QName capabilityName)
           
static void main(java.lang.String[] args)
          DOCUMENT_ME
 java.lang.String toString()
          DOCUMENT_ME
protected  void validateOperations()
           
protected  void validateProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceCapabilityImpl

public ResourceCapabilityImpl(javax.wsdl.Definition def,
                              javax.wsdl.PortType portType,
                              java.net.URL baseURL)
                       throws InvalidWsrfWsdlException
Creates a new ResourceCapabilityImpl based on the specified JWSDL definition and portType.

Parameters:
def - a JWSDL definition
baseURL -
Method Detail

validateProperties

protected void validateProperties()
                           throws InvalidWsrfWsdlException
Throws:
InvalidWsrfWsdlException

validateOperations

protected void validateOperations()
                           throws InvalidWsrfWsdlException
Throws:
InvalidWsrfWsdlException

hasProperties

public boolean hasProperties()
Specified by:
hasProperties in interface ResourceCapability
Returns:
true if this resource defines a resource properties document, or false if it does not

getImplementedResourceCapabilities

public java.util.Map getImplementedResourceCapabilities()
Specified by:
getImplementedResourceCapabilities in interface ResourceCapability
Returns:
a map of any other ResourceCapabilitys that this capability implements; the map's keys are the QNames of the capability portTypes, and the values are the ResourceCapabilitys.

getCustomOperationNames

public java.lang.String[] getCustomOperationNames()
DOCUMENT_ME

Specified by:
getCustomOperationNames in interface ResourceCapability
Returns:
DOCUMENT_ME

getCustomPropertyNames

public javax.xml.namespace.QName[] getCustomPropertyNames()
Specified by:
getCustomPropertyNames in interface ResourceCapability
Returns:

getDefinition

public javax.wsdl.Definition getDefinition()
DOCUMENT_ME

Specified by:
getDefinition in interface ResourceCapability
Returns:
DOCUMENT_ME

getPortType

public javax.wsdl.PortType getPortType()
DOCUMENT_ME

Specified by:
getPortType in interface ResourceCapability
Returns:
DOCUMENT_ME

getPropertyNames

public javax.xml.namespace.QName[] getPropertyNames()
DOCUMENT_ME

Specified by:
getPropertyNames in interface ResourceCapability
Returns:
DOCUMENT_ME

toString

public java.lang.String toString()
DOCUMENT_ME

Returns:
DOCUMENT_ME

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
DOCUMENT_ME

Parameters:
args - DOCUMENT_ME
Throws:
java.lang.Exception - DOCUMENT_ME

implementsResourceCapability

public boolean implementsResourceCapability(javax.xml.namespace.QName capabilityName)
Specified by:
implementsResourceCapability in interface ResourceCapability
Parameters:
capabilityName -
Returns:

getPropertiesDocumentName

public javax.xml.namespace.QName getPropertiesDocumentName()
Description copied from interface: ResourceCapability
Returns the name of the resource properties document element, as specified by the wsrf-rp:ResourceProperties attribute on the portType, or null if this resource does not define a properties document.

Specified by:
getPropertiesDocumentName in interface ResourceCapability
Returns:

getMetadataDescriptorName

public javax.xml.namespace.QName getMetadataDescriptorName()
Description copied from interface: ResourceCapability
Returns the name of the WS-RMD metadata descriptor, as specified by the wsrmd:MetadataDescriptor attribute on the portType, or null if this resource does not define a metadata descriptor.

Specified by:
getMetadataDescriptorName in interface ResourceCapability
Returns:

getMetadataDescriptorLocation

public java.lang.String getMetadataDescriptorLocation()
Description copied from interface: ResourceCapability
Returns the location of the WS-RMD metadata definitions document, as specified by the wsrmd:MetadataDescriptorLocation attribute on the portType, or null if this resource does not define a metadata descriptor.

Specified by:
getMetadataDescriptorLocation in interface ResourceCapability
Returns:


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.