Esri Geoportal Server
1.2.9

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

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

public class OperationResponse
extends Object

Represents an operation response.


Constructor Summary
OperationResponse(CswNamespaces namespaces)
          Default constructor
 
Method Summary
 CswNamespaces getNamespaces()
          Gets namespaces.
 String getOutputFormat()
          Gets the HTTP output format (MIME type).
 int getResponseCode()
          Gets HTTP response code.
 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 setNSAttributes(Element root)
          methods =================================================================
 void setOutputFormat(String outputFormat)
          Sets the HTTP output format (MIME type).
 void setResponseCode(int responseCode)
          Sets HTTP response code.
 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(CswNamespaces namespaces)
Default constructor

Parameters:
namespaces - namespaces
Method Detail

getNamespaces

public CswNamespaces getNamespaces()
Gets namespaces.

Returns:
namespaces.

getResponseCode

public int getResponseCode()
Gets HTTP response code.

Returns:
HTTP response code

setResponseCode

public void setResponseCode(int responseCode)
Sets HTTP response code.

Parameters:
responseCode - HTTP response code

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

setNSAttributes

public void setNSAttributes(Element root)
methods =================================================================


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.2.9

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