org.deegree_impl.clients.context
Class Server

java.lang.Object
  extended byorg.deegree_impl.clients.context.Server
All Implemented Interfaces:
Marshallable

public class Server
extends java.lang.Object
implements Marshallable

encapsulates the server description as defined in the OGC Web Map Context specification 1.0.0

Version:
$Revision: 1.4 $
Author:
Andreas Poth

Field Summary
private  java.net.URL onlineResource
           
private  java.lang.String service
           
private  java.lang.String title
           
private  java.lang.String version
           
 
Constructor Summary
Server(java.lang.String title, java.lang.String version, java.lang.String service, java.net.URL onlineResource)
          Creates a new Server object.
 
Method Summary
 java.lang.String exportAsXML()
          Produces an XML-representation of this object.
 java.net.URL getOnlineResource()
          link to the online resource
 java.lang.String getService()
          the type of the service according to OGC interfaces, such as WMS, WFS.
 java.lang.String getTitle()
          the title of the service (extracted from the Capabilities by the Context document creator)
 java.lang.String getVersion()
          Version number of the OGC interface specification which corresponds to the service
 void setOnlineResource(java.net.URL onlineResource)
           
 void setService(java.lang.String service)
           
 void setTitle(java.lang.String title)
           
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

private java.lang.String service

title

private java.lang.String title

version

private java.lang.String version

onlineResource

private java.net.URL onlineResource
Constructor Detail

Server

public Server(java.lang.String title,
              java.lang.String version,
              java.lang.String service,
              java.net.URL onlineResource)
       throws ContextException
Creates a new Server object.

Parameters:
title - the title of the service
version - Version number of the OGC interface specification which corresponds to the service
service - the type of the service according to OGC interfaces, such as WMS, WFS.
onlineResource - the link to the online resource
Throws:
ContextException
Method Detail

getTitle

public java.lang.String getTitle()
the title of the service (extracted from the Capabilities by the Context document creator)

Returns:

getVersion

public java.lang.String getVersion()
Version number of the OGC interface specification which corresponds to the service

Returns:

getService

public java.lang.String getService()
the type of the service according to OGC interfaces, such as WMS, WFS.

Returns:

getOnlineResource

public java.net.URL getOnlineResource()
link to the online resource

Returns:

setTitle

public void setTitle(java.lang.String title)
Parameters:
title -
See Also:
getTitle()

setVersion

public void setVersion(java.lang.String version)
                throws ContextException
Parameters:
version -
Throws:
ContextException
See Also:
getVersion()

setService

public void setService(java.lang.String service)
                throws ContextException
Parameters:
service -
Throws:
ContextException
See Also:
getService()

setOnlineResource

public void setOnlineResource(java.net.URL onlineResource)
                       throws ContextException
Parameters:
onlineResource -
Throws:
ContextException
See Also:
getOnlineResource()

exportAsXML

public java.lang.String exportAsXML()
Description copied from interface: Marshallable
Produces an XML-representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object