|
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
public abstract class ResultSetWriter
Super-class for a rest response writer based upon a JDBC ResultSet.
Field Summary |
---|
Fields inherited from class com.esri.gpt.control.rest.writer.ResponseWriter |
---|
DEFAULT_NEWLINE, DEFAULT_TAB |
Constructor Summary | |
---|---|
ResultSetWriter(Writer underlyingWriter)
Constructs with an underlying response writer. |
Method Summary | |
---|---|
abstract void |
endRow(int depth)
Ends a row. |
abstract void |
endRows(int depth)
Ends a collection of rows. |
abstract void |
startRow(int depth)
Starts a row. |
abstract void |
startRows(int depth)
Starts a collection of rows. |
abstract void |
writeCell(String name,
Object value,
int depth)
Writes a cell property value. |
void |
writeResultSet(ResultSet rs,
int depth,
String[] columnTags)
Writes a ResultSet to the response. |
Methods inherited from class com.esri.gpt.control.rest.writer.ResponseWriter |
---|
begin, close, flush, getContentType, 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 ResultSetWriter(Writer underlyingWriter)
underlyingWriter
- the underlying writerMethod Detail |
---|
public abstract void endRow(int depth) throws IOException
depth
- the indent depth
IOException
- if an I/O exception occurspublic abstract void endRows(int depth) throws IOException
depth
- the indent depth
IOException
- if an I/O exception occurspublic abstract void startRow(int depth) throws IOException
depth
- the indent depth
IOException
- if an I/O exception occurspublic abstract void startRows(int depth) throws IOException
depth
- the indent depth
IOException
- if an I/O exception occurspublic abstract void writeCell(String name, Object value, int depth) throws IOException
name
- the property namevalue
- the property valuedepth
- the indent depth
IOException
- if an I/O exception occurspublic void writeResultSet(ResultSet rs, int depth, String[] columnTags) throws IOException, SQLException
rs
- the ResultSetdepth
- the indent depthcolumnTags
- optional, the tag names per column
IOException
- if an I/O exception occurs
SQLException
- if an SQL exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |