Esri Geoportal Server
1.0

com.esri.gpt.framework.http
Class StreamHandler

java.lang.Object
  extended by com.esri.gpt.framework.http.ContentBase
      extended by com.esri.gpt.framework.http.ContentHandler
          extended by com.esri.gpt.framework.http.StreamHandler
Direct Known Subclasses:
ByteArrayHandler

public class StreamHandler
extends ContentHandler

Stream based handler for the content of an HTTP response body.


Constructor Summary
StreamHandler(OutputStream stream)
          Constructs with a supplied output stream.
 
Method Summary
 OutputStream getOutputStream()
          Gets the stream to which the HTTP response is written.
 void readResponse(HttpClientRequest request, InputStream responseStream)
          Handle the content associated with an HTTP response body.
 
Methods inherited from class com.esri.gpt.framework.http.ContentBase
executeIO, executeIO, getInitialBufferlength, getLoggableContent, setInitialBufferLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamHandler

public StreamHandler(OutputStream stream)
Constructs with a supplied output stream.

Parameters:
stream - the stream to which the HTTP response will be written
Method Detail

getOutputStream

public OutputStream getOutputStream()
Gets the stream to which the HTTP response is written.

Returns:
the output stream

readResponse

public void readResponse(HttpClientRequest request,
                         InputStream responseStream)
                  throws IOException
Handle the content associated with an HTTP response body.

Specified by:
readResponse in class ContentHandler
Parameters:
request - the HTTP request that was executed
responseStream - the stream associated with the HTTP response body
Throws:
IOException - if an exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.