net.netheos.pcsapi.request
Class JSONEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by net.netheos.pcsapi.request.JSONEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class JSONEntity
extends org.apache.http.entity.AbstractHttpEntity


Field Summary
 
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType
 
Constructor Summary
JSONEntity(org.json.JSONArray json)
           
JSONEntity(org.json.JSONObject json)
           
 
Method Summary
 InputStream getContent()
           
 long getContentLength()
           
 boolean isRepeatable()
           
 boolean isStreaming()
           
 void writeTo(OutputStream out)
           
 
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONEntity

public JSONEntity(org.json.JSONObject json)

JSONEntity

public JSONEntity(org.json.JSONArray json)
Method Detail

isRepeatable

public boolean isRepeatable()

getContentLength

public long getContentLength()

getContent

public InputStream getContent()
                       throws IOException,
                              IllegalStateException
Throws:
IOException
IllegalStateException

writeTo

public void writeTo(OutputStream out)
             throws IOException
Throws:
IOException

isStreaming

public boolean isStreaming()


Copyright © 2014. All Rights Reserved.