public class NJavascriptFunctionEntity
extends org.apache.http.entity.AbstractHttpEntity
implements org.apache.http.nio.entity.HttpAsyncContentProducer
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
Logger |
| Constructor and Description |
|---|
NJavascriptFunctionEntity(String endpointUriStr,
ScriptObjectMirror endPoint,
ScriptObjectMirror fn,
org.apache.http.entity.ContentType contentType,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context)
Primary constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
produceContent(org.apache.http.nio.ContentEncoder encoder,
org.apache.http.nio.IOControl ioctrl) |
void |
writeTo(OutputStream outstream) |
public NJavascriptFunctionEntity(String endpointUriStr, ScriptObjectMirror endPoint, ScriptObjectMirror fn, org.apache.http.entity.ContentType contentType, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntityisRepeatable in interface org.apache.http.nio.entity.HttpAsyncContentProducerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic InputStream getContent() throws IOException, IllegalStateException
getContent in interface org.apache.http.HttpEntityIOExceptionIllegalStateExceptionpublic void writeTo(OutputStream outstream) throws IOException
writeTo in interface org.apache.http.HttpEntityIOExceptionpublic void produceContent(org.apache.http.nio.ContentEncoder encoder,
org.apache.http.nio.IOControl ioctrl)
throws IOException
produceContent in interface org.apache.http.nio.entity.HttpAsyncContentProducerIOExceptionCopyright © 2015–2024 Frank Stock. All rights reserved.