org.apache.http.nio.entity
Class StringNIOEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by org.apache.http.entity.StringEntity
          extended by org.apache.http.nio.entity.StringNIOEntity
All Implemented Interfaces:
Cloneable, HttpEntity, HttpNIOEntity

Deprecated. Use NStringEntity

@Deprecated
public class StringNIOEntity
extends StringEntity
implements HttpNIOEntity

An entity whose content is retrieved from a string. In addition to the standard HttpEntity interface this class also implements NIO specific HttpNIOEntity.

Since:
4.0

Field Summary
 
Fields inherited from class org.apache.http.entity.StringEntity
content
 
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType
 
Constructor Summary
StringNIOEntity(String s, String charset)
          Deprecated.  
 
Method Summary
 ReadableByteChannel getChannel()
          Deprecated.  
 
Methods inherited from class org.apache.http.entity.StringEntity
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.HttpEntity
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTo
 

Constructor Detail

StringNIOEntity

public StringNIOEntity(String s,
                       String charset)
                throws UnsupportedEncodingException
Deprecated. 
Throws:
UnsupportedEncodingException
Method Detail

getChannel

public ReadableByteChannel getChannel()
                               throws IOException
Deprecated. 
Specified by:
getChannel in interface HttpNIOEntity
Throws:
IOException


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.