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
 Object getEntity()
          Get the request entity to send with the request.
 String getMethod()
          Get the http method
 URI getURI()
          Get the uri of the request
 void setEntity(Object entity)
          Set the request entity to send with the request.
 void setMethod(String method)
          Set the http method
 void setURI(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

String getMethod()
Get the http method

Returns:
http method

setMethod

void setMethod(String method)
Set the http method

Parameters:
method - http method to set

getEntity

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

Returns:
the request entity instance

setEntity

void setEntity(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

URI getURI()
Get the uri of the request

Returns:
the uri of the request

setURI

void setURI(URI uri)
Set the uri of the request

Parameters:
uri - uri to set


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