org.deegree.services.csw.exporthandling
Class GetCapabilitiesHelper

java.lang.Object
  extended by org.deegree.services.csw.exporthandling.GetCapabilitiesHelper

public class GetCapabilitiesHelper
extends Object

An abstract Handler to write GetCapabilities documents

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Constructor Summary
GetCapabilitiesHelper()
           
 
Method Summary
 void exportServiceIdentification(XMLStreamWriter writer, ServiceIdentificationType identification, String serviceType, String serviceTypeVersion, String serviceTypeCodeSpace)
           
 void writeDescribeRecord(XMLStreamWriter writer, String owsNS, String[] typeNames, String[] outputFormats, String schemaLanguage)
          Writes the parameter and attributes for the mandatory DescribeRecord operation to the output.
 void writeGetCapabilities(XMLStreamWriter writer, String owsNS)
          Writes the parameter and attributes for the mandatory GetCapabilities operation to the output.
 void writeGetRecordById(XMLStreamWriter writer, String owsNS, String[] outputFormats, String[] outputSchemas)
          Writes the parameter and attributes for the mandatory GetRecordById operation to the output.
 void writeGetRecords(XMLStreamWriter writer, String owsNS, String[] typeNames, String[] outputFormats, String[] outputSchemas, String[] elementSetNames)
          Writes the parameter and attributes for the mandatory GetRecords operation to the output.
 void writeValue(XMLStreamWriter writer, String ns, String value)
          Writes an empty element 'Value' in the given namespace and with the given value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetCapabilitiesHelper

public GetCapabilitiesHelper()
Method Detail

exportServiceIdentification

public void exportServiceIdentification(XMLStreamWriter writer,
                                        ServiceIdentificationType identification,
                                        String serviceType,
                                        String serviceTypeVersion,
                                        String serviceTypeCodeSpace)
                                 throws XMLStreamException
Throws:
XMLStreamException

writeDescribeRecord

public void writeDescribeRecord(XMLStreamWriter writer,
                                String owsNS,
                                String[] typeNames,
                                String[] outputFormats,
                                String schemaLanguage)
                         throws XMLStreamException
Writes the parameter and attributes for the mandatory DescribeRecord operation to the output.

Parameters:
writer - to write the output
owsNS - the OWS namespace
Throws:
XMLStreamException

writeGetCapabilities

public void writeGetCapabilities(XMLStreamWriter writer,
                                 String owsNS)
                          throws XMLStreamException
Writes the parameter and attributes for the mandatory GetCapabilities operation to the output.

Parameters:
writer - to write the output
owsNS - the OWS namespace
Throws:
XMLStreamException

writeGetRecords

public void writeGetRecords(XMLStreamWriter writer,
                            String owsNS,
                            String[] typeNames,
                            String[] outputFormats,
                            String[] outputSchemas,
                            String[] elementSetNames)
                     throws XMLStreamException
Writes the parameter and attributes for the mandatory GetRecords operation to the output.

Parameters:
writer -
owsNS -
typeNames - the typeNames to write
outputFormats - the outputFormats to write
outputSchemas - the outputSchemas to write
elementSetNames - the elementSetNames to write, if null this parameter will be ignored, can be null
Throws:
XMLStreamException

writeGetRecordById

public void writeGetRecordById(XMLStreamWriter writer,
                               String owsNS,
                               String[] outputFormats,
                               String[] outputSchemas)
                        throws XMLStreamException
Writes the parameter and attributes for the mandatory GetRecordById operation to the output.
In this case the optional transaction operation uses this writing to the output, as well.

Parameters:
writer -
owsNS -
outputFormats - the outpurFormats to write
outputSchemas - the outputSChemas to write
Throws:
XMLStreamException

writeValue

public void writeValue(XMLStreamWriter writer,
                       String ns,
                       String value)
                throws XMLStreamException
Writes an empty element 'Value' in the given namespace and with the given value

Parameters:
writer -
ns - the namespaceURI
value - the value to write
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.