Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider.components
Class OperationResponse

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.components.OperationResponse

public class OperationResponse
extends Object

Represents an operation response.


Constructor Summary
OperationResponse()
          Default constructor
 
Method Summary
 String getOutputFormat()
          Gets the HTTP output format (MIME type).
 Document getResponseDom()
          Gets the XML response document under construction.
 String getResponseXml()
          Gets the response XML.
 Document newResponseDom()
          Creates a new XML document for response construction.
 Element newResponseDom(String rootName)
          Creates a new XML document for response construction.
 void setOutputFormat(String outputFormat)
          Sets the HTTP output format (MIME type).
 void setResponseDom(Document responseDom)
          Sets the XML response document under construction.
 void setResponseXml(String xml)
          Sets the response XML.
 String toIso8601(Timestamp timestamp)
          Converts a Timestamp to ISO-8601 format.
 String toIso8601Date(Timestamp timestamp)
          Converts a Timestamp to ISO-8601 Date format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationResponse

public OperationResponse()
Default constructor

Method Detail

getOutputFormat

public String getOutputFormat()
Gets the HTTP output format (MIME type).

Returns:
the output format (can be null)

setOutputFormat

public void setOutputFormat(String outputFormat)
Sets the HTTP output format (MIME type).

Parameters:
outputFormat - the output format

getResponseXml

public String getResponseXml()
Gets the response XML.

Returns:
the response XML (can be null)

setResponseXml

public void setResponseXml(String xml)
Sets the response XML.

Parameters:
xml - the response XML

getResponseDom

public Document getResponseDom()
Gets the XML response document under construction.

Returns:
the XML response document (can be null)

setResponseDom

public void setResponseDom(Document responseDom)
Sets the XML response document under construction.

Parameters:
responseDom - the XML response document

newResponseDom

public Document newResponseDom()
                        throws Exception
Creates a new XML document for response construction.

Returns:
the XML response document
Throws:
Exception - if the document fails during creation

newResponseDom

public Element newResponseDom(String rootName)
                       throws Exception
Creates a new XML document for response construction.

Parameters:
rootName - the name of the root element
Returns:
the root element
Throws:
DiscoveryException - if the document fails to create
Exception

toIso8601

public String toIso8601(Timestamp timestamp)
Converts a Timestamp to ISO-8601 format.

Parameters:
timestamp - the timestamp
Returns:
the formatted result

toIso8601Date

public String toIso8601Date(Timestamp timestamp)
Converts a Timestamp to ISO-8601 Date format.

Parameters:
timestamp - the timestamp
Returns:
the formatted result

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.