org.openrdf.http.object.readers
Class HttpMessageReader

java.lang.Object
  extended by org.openrdf.http.object.readers.HttpMessageReader
All Implemented Interfaces:
MessageBodyReader<org.apache.http.HttpMessage>

public class HttpMessageReader
extends Object
implements MessageBodyReader<org.apache.http.HttpMessage>

Parses HttpMessage objects from message/http streams

Author:
James Leigh

Constructor Summary
HttpMessageReader()
           
 
Method Summary
 boolean isReadable(MessageType mtype)
           
 org.apache.http.HttpMessage readFrom(MessageType mtype, ReadableByteChannel in, Charset charset, String base, String location)
          Must close InputStream or return an object that will later close the InputStream.
 org.apache.http.HttpMessage readFrom(String mimeType, ReadableByteChannel in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMessageReader

public HttpMessageReader()
Method Detail

isReadable

public boolean isReadable(MessageType mtype)
Specified by:
isReadable in interface MessageBodyReader<org.apache.http.HttpMessage>

readFrom

public org.apache.http.HttpMessage readFrom(MessageType mtype,
                                            ReadableByteChannel in,
                                            Charset charset,
                                            String base,
                                            String location)
                                     throws IOException
Description copied from interface: MessageBodyReader
Must close InputStream or return an object that will later close the InputStream.

Specified by:
readFrom in interface MessageBodyReader<org.apache.http.HttpMessage>
Throws:
IOException

readFrom

public org.apache.http.HttpMessage readFrom(String mimeType,
                                            ReadableByteChannel in)
                                     throws IOException
Throws:
IOException


Copyright © 2004-2011 James Leigh Services Inc.. All Rights Reserved.