|
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
public abstract class ResponseWriter
Super-class for a rest based response writer.
| Field Summary | |
|---|---|
static String |
DEFAULT_NEWLINE
The default newline string = "\r\n" |
static String |
DEFAULT_TAB
The default tab string = " " (2 spaces) |
| Constructor Summary | |
|---|---|
ResponseWriter(Writer underlyingWriter)
Constructs with an underlying response writer. |
|
| Method Summary | |
|---|---|
void |
begin(HttpServletResponse response)
Begins the response. |
void |
close()
Closes the underlying writer. |
void |
flush()
Flushes the underlying writer. |
abstract String |
getContentType()
Gets the response content type. |
String |
getNewline()
Gets the newline string. |
String |
getTab()
Gets the tab string. |
Writer |
getUnderlyingWriter()
Gets the underlying writer associated with the response. |
String |
makeTabs(int depth)
Makes a tab string for a supplied index depth. |
void |
setNewline(String newline)
Sets the newline string. |
void |
setTab(String tab)
Sets the tab string. |
protected void |
setUnderlyingWriter(Writer underlyingWriter)
Sets the underlying writer associated with the response. |
boolean |
wasWrittenTo()
Flag indicating if the response has been written to. |
void |
write(String value)
Writes a string to the underlying writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_NEWLINE
public static final String DEFAULT_TAB
| Constructor Detail |
|---|
public ResponseWriter(Writer underlyingWriter)
underlyingWriter - the underlying writer| Method Detail |
|---|
public abstract String getContentType()
public String getNewline()
public void setNewline(String newline)
newline - the newline stringpublic String getTab()
public void setTab(String tab)
tab - the tab stringpublic Writer getUnderlyingWriter()
protected void setUnderlyingWriter(Writer underlyingWriter)
underlyingWriter - the underlying writerpublic boolean wasWrittenTo()
public void begin(HttpServletResponse response)
throws IOException
response - HTTP response
IOException - if an I/O exception occurs
public void close()
throws IOException
IOException - if an I/O exception occurs
public void flush()
throws IOException
IOException - if an I/O exception occurspublic String makeTabs(int depth)
depth - the indent depth
public void write(String value)
throws IOException
value - the string to write
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 | ||||||||