|
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.framework.http.ContentBase
com.esri.gpt.framework.http.ContentProvider
com.esri.gpt.framework.http.ByteArrayProvider
public class ByteArrayProvider
Byte array provider for the content of an HTTP request body.
| Constructor Summary | |
|---|---|
ByteArrayProvider(byte[] content,
String contentType)
Constructs with an array of bytes and a 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 ByteArrayProvider(byte[] content,
String contentType)
content - the byte array providing the content for the HTTP request bodycontentType - the content type of the HTTP request body,
use null if unknown, include a charset if applicable,
e.g. text/xml; charset=UTF-8| Method Detail |
|---|
public long getContentLength()
getContentLength in class ContentProviderpublic String getContentType()
getContentType in class ContentProviderpublic boolean isRepeatable()
isRepeatable in class ContentProvider
public void writeRequest(HttpClientRequest request,
OutputStream destination)
throws IOException
writeRequest in class ContentProviderrequest - the HTTP request that is executingdestination - the output stream to which data will be written
IOException - if an exception occurs
|
Esri Geoportal Server 1.2.9
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||