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.HttpEntity
isRepeatable
in interface org.apache.http.nio.entity.HttpAsyncContentProducer
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public InputStream getContent() throws IOException, IllegalStateException
getContent
in interface org.apache.http.HttpEntity
IOException
IllegalStateException
public void writeTo(OutputStream outstream) throws IOException
writeTo
in interface org.apache.http.HttpEntity
IOException
public void produceContent(org.apache.http.nio.ContentEncoder encoder, org.apache.http.nio.IOControl ioctrl) throws IOException
produceContent
in interface org.apache.http.nio.entity.HttpAsyncContentProducer
IOException
Copyright © 2015–2024 Frank Stock. All rights reserved.