|
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.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.
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 |
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 writerMethod Detail |
---|
public String getContentType()
getContentType
in class ResponseWriter
public void endRow(int depth) throws IOException
endRow
in class ResultSetWriter
depth
- the indent depth
IOException
- if an I/O exception occurspublic void endRows(int depth) throws IOException
endRows
in class ResultSetWriter
depth
- the indent depth
IOException
- if an I/O exception occurspublic void startRow(int depth) throws IOException
startRow
in class ResultSetWriter
depth
- the indent depth
IOException
- if an I/O exception occurspublic void startRows(int depth) throws IOException
startRows
in class ResultSetWriter
depth
- the indent depth
IOException
- if an I/O exception occurspublic void writeCell(String name, Object value, int depth) throws IOException
writeCell
in class ResultSetWriter
name
- the property namevalue
- the property valuedepth
- the indent depth
IOException
- if an I/O exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |