|
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.framework.http.ContentBase com.esri.gpt.framework.http.ContentProvider com.esri.gpt.framework.http.StreamProvider
public class StreamProvider
Stream based provider for the content of an HTTP request body.
Constructor Summary | |
---|---|
StreamProvider(InputStream content,
long contentLength,
String contentType)
Constructs with an associated request content input stream, content length and content type. |
Method Summary | |
---|---|
long |
getContentLength()
Gets the content length (in bytes) to be provided in the HTTP request header. |
String |
getContentType()
Gets the content type to be provided in the HTTP request header. |
boolean |
isRepeatable()
Tests if the HTTP request content can be written to the output stream more than once. |
void |
writeRequest(HttpClientRequest request,
OutputStream destination)
Writes the content of the HTTP request body to an output stream. |
Methods inherited from class com.esri.gpt.framework.http.ContentProvider |
---|
asBytes, ensureContentTypeEncoding, prepareForWrite |
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 |
---|
public StreamProvider(InputStream content, long contentLength, String contentType)
content
- the input stream providing the content of the HTTP request bodycontentLength
- the length (in bytes) of the HTTP request body,
use -1 if the length is unknowncontentType
- the content type of the HTTP request body,
use null if unknown, include a charset if applicable,
e.g. text/xml; charset=UTF-8Method Detail |
---|
public long getContentLength()
getContentLength
in class ContentProvider
public String getContentType()
getContentType
in class ContentProvider
public boolean isRepeatable()
isRepeatable
in class ContentProvider
public void writeRequest(HttpClientRequest request, OutputStream destination) throws IOException
writeRequest
in class ContentProvider
request
- the HTTP request that is executingdestination
- the output stream to which data will be written
IOException
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |