|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.server.csw.provider.local.DiscoveryAdapter com.esri.gpt.server.csw.provider.local.QueryResponse
public class QueryResponse
Generates a CSW query response.
Applies to the GetRecordById and GetRecords operation response.
Constructor Summary | |
---|---|
QueryResponse(OperationContext context)
Default constructor |
Method Summary | |
---|---|
protected void |
appendDiscoveredField(OperationContext context,
Element record,
Returnable returnable)
Creates and appends elements associated with a returnable property to a record element. |
protected void |
appendDiscoveredRecords(OperationContext context,
Element parent)
Creates and appends the discovered record elements to the XML document. |
protected void |
appendSearchResultsElement(OperationContext context,
Element parent)
Creates and appends the csw:SearchResults element to the XML document. |
void |
generateResponse(OperationContext context)
Generates the response. |
Element |
newResponseDom(OperationContext context,
String rootName)
Creates a new XML document for response construction. |
Methods inherited from class com.esri.gpt.server.csw.provider.local.DiscoveryAdapter |
---|
getDiscoveryContext, parsePropertyName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryResponse(OperationContext context)
Method Detail |
---|
protected void appendDiscoveredField(OperationContext context, Element record, Returnable returnable)
context
- the operation contextrecord
- the parent element that will hold the fields (a Record)returnable
- the returnable propertyprotected void appendDiscoveredRecords(OperationContext context, Element parent) throws Exception
context
- the operation contextparent
- the parent element that will hold the records
Exception
protected void appendSearchResultsElement(OperationContext context, Element parent) throws Exception
parent
- the parent element that will hold the results (typically the root)
Exception
public void generateResponse(OperationContext context) throws Exception
generateResponse
in interface IResponseGenerator
context
- the operation context
Exception
- if a processing exception occurspublic Element newResponseDom(OperationContext context, String rootName) throws Exception
rootName
- the name of the root element
Exception
- if a processing exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |