|
Drools :: Eclipse :: Webdav for Guvnor tools 6.0.0.Alpha7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.webdav.http.client.Message
org.eclipse.webdav.http.client.Request
public class Request
An HTTP request message.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.webdav.http.client.Message |
|---|
bufferPool, context, hasInputStream, inputRead, is |
| Constructor Summary | |
|---|---|
Request(String method,
URL resourceUrl,
IContext context)
Creates a request. |
|
Request(String method,
URL resourceUrl,
IContext context,
InputStream is)
Creates a request. |
|
Request(String method,
URL resourceUrl,
IContext context,
IRequestBodyWriter requestBodyWriter)
Creates a request. |
|
| Method Summary | |
|---|---|
long |
getContentLength()
Returns the content length of this message's body, or -1 if the content length is unknown. |
String |
getMethod()
Returns the type of this request, for example: "PUT". |
IRequestBodyWriter |
getRequestBodyWriter()
Returns this request's request body writer, or null if
this request does not have one. |
URL |
getResourceUrl()
Returns the URL of this request's target resource. |
String |
toString()
|
void |
write(OutputStream os)
Writes this request's body to the given output stream. |
| Methods inherited from class org.eclipse.webdav.http.client.Message |
|---|
close, getContext, getInputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Request(String method,
URL resourceUrl,
IContext context)
method - the type of request, for example: "PUT"resourceUrl - the URL of the target resourcecontext - the request's header, or null for an empty
header
public Request(String method,
URL resourceUrl,
IContext context,
InputStream is)
throws IOException
RequestInputStream or a ByteArrayInputStream.
method - the type of request, for example: "PUT"resourceUrl - the URL of the target resourcecontext - the request's header, or null for an empty
headeris - an input stream containing the message's body, or
null for an empty body
IOException - if there is an I/O errorRequestInputStream
public Request(String method,
URL resourceUrl,
IContext context,
IRequestBodyWriter requestBodyWriter)
method - the type of request, for example: "PUT"resourceUrl - the URL of the target resourcecontext - the message header, or null for an empty
headerrequestBodyWriter - for obtaining the message's body| Method Detail |
|---|
public long getContentLength()
getContentLength in class Messagepublic String getMethod()
public IRequestBodyWriter getRequestBodyWriter()
null if
this request does not have one.
nullpublic URL getResourceUrl()
public String toString()
toString in class Message
public void write(OutputStream os)
throws IOException
write in class Messageos - an output stream
IOException - if there is an I/O error
|
Drools :: Eclipse :: Webdav for Guvnor tools 6.0.0.Alpha7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||