org.apache.wink.client
Interface ClientRequest

All Superinterfaces:
org.apache.wink.client.internal.BaseRequestResponse

public interface ClientRequest
extends org.apache.wink.client.internal.BaseRequestResponse

Represents a request issued by invoking any one of the invocation methods on a Resource. An instance of a ClientRequest is created at the beginning of an invocation and passed to all the client handlers defined on the client that was used for the invocation.


Method Summary
 java.lang.Object getEntity()
          Get the request entity to send with the request.
 java.lang.String getMethod()
          Get the http method
 java.net.URI getURI()
          Get the uri of the request
 void setEntity(java.lang.Object entity)
          Set the request entity to send with the request.
 void setMethod(java.lang.String method)
          Set the http method
 void setURI(java.net.URI uri)
          Set the uri of the request
 
Methods inherited from interface org.apache.wink.client.internal.BaseRequestResponse
getAttribute, getAttributes, getHeaders, setAttribute
 

Method Detail

getMethod

java.lang.String getMethod()
Get the http method

Returns:
http method

setMethod

void setMethod(java.lang.String method)
Set the http method

Parameters:
method - http method to set

getEntity

java.lang.Object getEntity()
Get the request entity to send with the request.

Returns:
the request entity instance

setEntity

void setEntity(java.lang.Object entity)
Set the request entity to send with the request. The entity may be any object that has a corresponding Provider that can handle it with the content type specified in the Content-Type header.


getURI

java.net.URI getURI()
Get the uri of the request

Returns:
the uri of the request

setURI

void setURI(java.net.URI uri)
Set the uri of the request

Parameters:
uri - uri to set


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.