org.n52.oxf.ows
Class ServiceDescriptor

java.lang.Object
  extended by org.n52.oxf.ows.ServiceDescriptor

public class ServiceDescriptor
extends Object

This class provides access to all the serviceMetadata which is described in the OWS Common spec (04-016r5h) of the OGC. This Descriptor has to be filled by each ServiceAdapter. The main parts of that model are:

Author:
Theodor Foerster , Arne Broering

Constructor Summary
ServiceDescriptor(String version, ServiceIdentification si, ServiceProvider sp, OperationsMetadata om, Contents c)
          this constructor has all required attributes of the class as its parameters.
ServiceDescriptor(String url, String version, ServiceIdentification si, ServiceProvider sp, OperationsMetadata om, Contents c, String updateSequence)
          this constructor has all attributes of the class as its parameters.
 
Method Summary
 Contents getContents()
           
 OperationsMetadata getOperationsMetadata()
           
 ServiceIdentification getServiceIdentification()
           
 ServiceProvider getServiceProvider()
           
 String getUpdateSequence()
           
 String getVersion()
           
protected  void setContents(Contents contents)
           
protected  void setOperationsMetadata(OperationsMetadata operationsMetadata)
           
protected  void setServiceIdentification(ServiceIdentification serviceIdentification)
           
protected  void setServiceProvider(ServiceProvider serviceProvider)
           
protected  void setUpdateSequence(String updateSequence)
           
protected  void setVersion(String version)
          sets the version of the GetCapabilities operation response.
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceDescriptor

public ServiceDescriptor(String version,
                         ServiceIdentification si,
                         ServiceProvider sp,
                         OperationsMetadata om,
                         Contents c)
this constructor has all required attributes of the class as its parameters.

Parameters:
url -
version -
si -
sp -
om -
c -
Throws:
OXFException

ServiceDescriptor

public ServiceDescriptor(String url,
                         String version,
                         ServiceIdentification si,
                         ServiceProvider sp,
                         OperationsMetadata om,
                         Contents c,
                         String updateSequence)
this constructor has all attributes of the class as its parameters.

Parameters:
url -
version -
si -
sp -
om -
c -
updateSequence -
Throws:
OXFException
Method Detail

toXML

public String toXML()
Returns:
a XML representation of this ServiceDescriptor.

getUpdateSequence

public String getUpdateSequence()
Returns:
Returns the updateSequence.

setUpdateSequence

protected void setUpdateSequence(String updateSequence)
Parameters:
updateSequence - The updateSequence to set.

getVersion

public String getVersion()
Returns:
Returns the version.

setVersion

protected void setVersion(String version)
                   throws IllegalArgumentException
sets the version of the GetCapabilities operation response.

Parameters:
version -
Throws:
IllegalArgumentException - if version.equals("").

getOperationsMetadata

public OperationsMetadata getOperationsMetadata()
Returns:
Returns the operationsMetadata.

setOperationsMetadata

protected void setOperationsMetadata(OperationsMetadata operationsMetadata)
Parameters:
operationsMetadata - The operationsMetadata to set.

getServiceIdentification

public ServiceIdentification getServiceIdentification()
Returns:
Returns the serviceIdentification.

setServiceIdentification

protected void setServiceIdentification(ServiceIdentification serviceIdentification)
Parameters:
serviceIdentification - The serviceIdentification to set.

getServiceProvider

public ServiceProvider getServiceProvider()
Returns:
Returns the serviceProvider.

setServiceProvider

protected void setServiceProvider(ServiceProvider serviceProvider)
Parameters:
serviceProvider - The serviceProvider to set.

setContents

protected void setContents(Contents contents)
Parameters:
contents -

getContents

public Contents getContents()
Returns:
Returns the contents.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 52north.org. All Rights Reserved.