|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.control.rest.writer.ResponseWriter
com.esri.gpt.control.rest.writer.ResultSetWriter
com.esri.gpt.control.rest.writer.JsonResultSetWriter
public class JsonResultSetWriter
Writes a JSON response based upon a JDBC ResultSet.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.esri.gpt.control.rest.writer.ResultSetWriter |
|---|
ResultSetWriter.RecordElement |
| Field Summary |
|---|
| Fields inherited from class com.esri.gpt.control.rest.writer.ResponseWriter |
|---|
DEFAULT_NEWLINE, DEFAULT_TAB |
| Constructor Summary | |
|---|---|
JsonResultSetWriter(Writer underlyingWriter)
Constructs with an underlying response writer. |
|
| Method Summary | |
|---|---|
void |
endRow(int depth)
Ends a row. |
void |
endRows(int depth)
Ends a collection of rows. |
String |
getContentType()
Gets the response content type. |
void |
startRow(int depth)
Starts a row. |
void |
startRows(int depth)
Starts a collection of rows. |
void |
writeCell(String name,
Object value,
int depth)
Writes a cell property value. |
| Methods inherited from class com.esri.gpt.control.rest.writer.ResultSetWriter |
|---|
writeResultSet, writeResultSetElement |
| Methods inherited from class com.esri.gpt.control.rest.writer.ResponseWriter |
|---|
begin, close, flush, getNewline, getTab, getUnderlyingWriter, makeTabs, setNewline, setTab, setUnderlyingWriter, wasWrittenTo, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonResultSetWriter(Writer underlyingWriter)
underlyingWriter - the underlying writer| Method Detail |
|---|
public String getContentType()
getContentType in class ResponseWriter
public void endRow(int depth)
throws IOException
endRow in class ResultSetWriterdepth - the indent depth
IOException - if an I/O exception occurs
public void endRows(int depth)
throws IOException
endRows in class ResultSetWriterdepth - the indent depth
IOException - if an I/O exception occurs
public void startRow(int depth)
throws IOException
startRow in class ResultSetWriterdepth - the indent depth
IOException - if an I/O exception occurs
public void startRows(int depth)
throws IOException
startRows in class ResultSetWriterdepth - the indent depth
IOException - if an I/O exception occurs
public void writeCell(String name,
Object value,
int depth)
throws IOException
writeCell in class ResultSetWritername - the property namevalue - the property valuedepth - the indent depth
IOException - if an I/O exception occurs
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||