|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.server.ResponseStreamer
public class ResponseStreamer
This class writes a response stream generated by Server objects and Server object extensions directly into the REST/SOAP handler completely bypassing the RMI transport. NOTE: The buffer size is determined by the tomcat buffer size which is is 8192 bytes. This means that tomcat will write 8192 sized response packets to clients. This size cannot be changed per this discussion. http://mail-archives.apache.org/mod_mbox/tomcat-dev/200408.mbox/%3C018301c47f2b$3b381930$6c37a8c0@bbarkerxp%3E *
Field Summary | |
---|---|
static int |
LOG_LEVEL_DEBUG
|
static int |
LOG_LEVEL_INFO_1
|
static int |
LOG_LEVEL_INFO_2
|
static int |
LOG_LEVEL_INFO_3
|
static int |
LOG_LEVEL_SEVERE
|
static int |
LOG_LEVEL_WARNING
|
Fields inherited from interface com.esri.arcgis.server.IResponseStreamer |
---|
IID, IIDe7b4f042_dd12_3ce9_a801_0f47bc498f47, xxDummy |
Constructor Summary | |
---|---|
ResponseStreamer()
Initializes this object |
Method Summary | |
---|---|
void |
close()
Closes the response stream. |
int |
getBufferSize()
The size of each response chunk that the client will receive. |
void |
init(java.lang.String contentType,
java.lang.String charEncoding)
Initializes the Response streamer. |
void |
write(byte[] bytes)
Writes a byte array as a response stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LOG_LEVEL_SEVERE
public static final int LOG_LEVEL_WARNING
public static final int LOG_LEVEL_INFO_1
public static final int LOG_LEVEL_INFO_2
public static final int LOG_LEVEL_INFO_3
public static final int LOG_LEVEL_DEBUG
Constructor Detail |
---|
public ResponseStreamer() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void init(java.lang.String contentType, java.lang.String charEncoding)
init
in interface IResponseStreamer
contentType
- The contentType (in)contentEncoding
- The contentEncoding (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBufferSize()
getBufferSize
in interface IResponseStreamer
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void write(byte[] bytes)
write
in interface IResponseStreamer
bytes
- An unsigned byte (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void close()
close
in interface IResponseStreamer
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |