org.deegree.protocol.ows.getcapabilities
Class GetCapabilities

java.lang.Object
  extended by org.deegree.protocol.ows.getcapabilities.GetCapabilities

public class GetCapabilities
extends Object

Generic representation of an OWS/OGC GetCapabilities GetCapabilities. Used for GetCapabilities requests to any OGC web services.

Data model has been designed to capture the expressiveness of all OWS specifications and versions and was verified against the following specifications:

Supports multilingual services according to OWS Common change request OGC 08-016r2. This is already used by the WPS Specification 1.0.0.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$

Constructor Summary
GetCapabilities(String version)
          Constructs a new GetCapabilities request that specifies the requested version in a pre-OWS fashion (see section D.11 of OGC 06-121r3).
GetCapabilities(String version, Collection<String> acceptVersions, Collection<String> sections, Collection<String> acceptFormats, String updateSequence, Collection<String> acceptLanguages)
          Creates a new GetCapabilities instance.
GetCapabilities(String version, Collection<String> sections, Collection<String> acceptFormats, String updateSequence, Collection<String> languages)
          Constructs a new GetCapabilities request that specifies the requested version in a pre-OWS fashion (see section D.11 of OGC 06-121r3).
GetCapabilities(Version version)
          Constructs a new GetCapabilities request that specifies the requested version in a pre-OWS fashion (see section D.11 of OGC 06-121r3).
 
Method Summary
 Set<String> getAcceptFormats()
          Returns the formats accepted by the client.
 List<String> getAcceptLanguages()
          Returns the languages for human readable text requested by the client.
 List<String> getAcceptVersions()
          Returns the acceptable versions in order of client preference (most preferred version first).
 List<Version> getAcceptVersionsAsVersions()
          Returns the acceptable versions in order of client preference (most preferred version first).
 Set<String> getSections()
          Returns the sections requested by the client.
 String getUpdateSequence()
          Returns the update sequence value.
 String getVersion()
          Returns the old-style version information (used by pre-OWS GetCapabilities requests, see section D.11 of OGC 06-121r3).
 Version getVersionAsVersion()
          Returns the old-style version information (used by pre-OWS GetCapabilities requests, see section D.11 of OGC 06-121r3).
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetCapabilities

public GetCapabilities(String version,
                       Collection<String> acceptVersions,
                       Collection<String> sections,
                       Collection<String> acceptFormats,
                       String updateSequence,
                       Collection<String> acceptLanguages)
Creates a new GetCapabilities instance.

Parameters:
version - version hint, may be null
acceptVersions - acceptable protocol versions in order of client preference, may be empty or null
sections - requested section names, may be empty or null
acceptFormats - acceptable response formats, may be empty or null
updateSequence - TODO (what does it do exactly), may be null
acceptLanguages - RFC 4646 language codes for human readable text (e.g. "en-CA,fr-CA"), may be empty or null

GetCapabilities

public GetCapabilities(String version,
                       Collection<String> sections,
                       Collection<String> acceptFormats,
                       String updateSequence,
                       Collection<String> languages)
Constructs a new GetCapabilities request that specifies the requested version in a pre-OWS fashion (see section D.11 of OGC 06-121r3).

Parameters:
version - old-style version information, may be null
sections - queried section names, may be empty or null
acceptFormats - acceptable response formats, may be empty or null
updateSequence - TODO (what does it do exactly), may be null
languages - RFC 4646 language codes for human readable text (e.g. "en-CA,fr-CA"), may be emtpy or null

GetCapabilities

public GetCapabilities(String version)
Constructs a new GetCapabilities request that specifies the requested version in a pre-OWS fashion (see section D.11 of OGC 06-121r3).

Parameters:
version - old-style version information, may be null

GetCapabilities

public GetCapabilities(Version version)
Constructs a new GetCapabilities request that specifies the requested version in a pre-OWS fashion (see section D.11 of OGC 06-121r3).

Parameters:
version - old-style version information, may be null
Method Detail

getVersion

public String getVersion()
Returns the old-style version information (used by pre-OWS GetCapabilities requests, see section D.11 of OGC 06-121r3).

Returns:
old-style version information, may be null (if this is an OWS-style request or an pre-OWS request without version specification)

getVersionAsVersion

public Version getVersionAsVersion()
                            throws InvalidParameterValueException
Returns the old-style version information (used by pre-OWS GetCapabilities requests, see section D.11 of OGC 06-121r3).

Returns:
old-style version information, may be null (if this is an OWS-style request or an pre-OWS request without version specification)
Throws:
InvalidParameterValueException - if any of the versions is not syntactically correct

getAcceptVersions

public List<String> getAcceptVersions()
Returns the acceptable versions in order of client preference (most preferred version first).

Returns:
the acceptable versions, in order of preference, may be empty, but not null

getAcceptVersionsAsVersions

public List<Version> getAcceptVersionsAsVersions()
                                          throws InvalidParameterValueException
Returns the acceptable versions in order of client preference (most preferred version first).

Returns:
the acceptable versions, in order of preference, may be empty, but not null
Throws:
InvalidParameterValueException - if any of the versions is not syntactically correct
See Also:
Version

getSections

public Set<String> getSections()
Returns the sections requested by the client.

Returns:
the requested sections, may be empty, but not null

getAcceptFormats

public Set<String> getAcceptFormats()
Returns the formats accepted by the client.

Returns:
the accepted formats, may be empty, but not null

getUpdateSequence

public String getUpdateSequence()
Returns the update sequence value.

Returns:
the update sequence value or null if unspecified

getAcceptLanguages

public List<String> getAcceptLanguages()
Returns the languages for human readable text requested by the client.

Returns:
list of RFC 4646 language codes, may be empty, but not null

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.