org.xlightweb
Interface IPart

Package class diagram package IPart
All Superinterfaces:
IHeader
All Known Subinterfaces:
IHttpMessage, IHttpRequest, IHttpResponse
All Known Implementing Classes:
DeleteRequest, FormURLEncodedRequest, GetRequest, HeadRequest, HttpRequest, HttpRequestWrapper, HttpResponse, MultipartFormDataRequest, MultipartRequest, OptionsRequest, Part, PostRequest, PutRequest

public interface IPart
extends IHeader

Part defintion


Method Summary
 BlockingBodyDataSource getBlockingBody()
          Deprecated. use getBody() instead
 BodyDataSource getBody()
          returns the blocking body
 NonBlockingBodyDataSource getNonBlockingBody()
          returns the non-blocking body
 IHeader getPartHeader()
          returns the part header
 boolean hasBody()
          returns true if the part has a body
 
Methods inherited from interface org.xlightweb.IHeader
addHeader, addHeaderLine, addHeaderlines, containsHeader, getCharacterEncoding, getContentType, getDisposition, getDispositionParam, getDispositionType, getHeader, getHeader, getHeaderList, getHeaderNames, getHeaderNameSet, getHeaders, getTransferEncoding, removeHeader, setContentType, setHeader, setTransferEncoding
 

Method Detail

getPartHeader

IHeader getPartHeader()
returns the part header

Returns:
the part header

getNonBlockingBody

NonBlockingBodyDataSource getNonBlockingBody()
                                             throws IOException
returns the non-blocking body

Returns:
the body or null if parte is bodyless
Throws:
IOException

getBlockingBody

BlockingBodyDataSource getBlockingBody()
                                       throws IOException
Deprecated. use getBody() instead

Throws:
IOException

getBody

BodyDataSource getBody()
                       throws IOException
returns the blocking body

Returns:
the body or null if part is bodyless
Throws:
IOException

hasBody

boolean hasBody()
returns true if the part has a body

Returns:
true, if the part has a body