com.sun.ws.rest.api.client
Class ClientRequest

java.lang.Object
  extended by com.sun.ws.rest.api.client.ClientRequest

public abstract class ClientRequest
extends java.lang.Object

A client (outbound) HTTP request.

Instances may be created by using the static method create() and methods on ClientRequest.Builder.


Nested Class Summary
static class ClientRequest.Builder
          The builder for building a ClientRequest instance.
 
Constructor Summary
ClientRequest()
           
 
Method Summary
abstract  ClientRequest clone()
          Clone the request.
static ClientRequest.Builder create()
          Create a builder for building a new ClientRequestinstance.
abstract  java.lang.Object getEntity()
          Get the entity of the request.
abstract  javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getMetadata()
          Get the HTTP headers of the request.
abstract  java.lang.String getMethod()
          Get the HTTP method.
abstract  java.net.URI getURI()
          Get the URI of the request.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRequest

public ClientRequest()
Method Detail

getURI

public abstract java.net.URI getURI()
Get the URI of the request. The URI shall contain sufficient components to correctly dispatch a request

Returns:
the URI of the request.

getMethod

public abstract java.lang.String getMethod()
Get the HTTP method.

Returns:
the HTTP method.

getEntity

public abstract java.lang.Object getEntity()
Get the entity of the request.

Returns:
the entity of the request.

getMetadata

public abstract javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getMetadata()
Get the HTTP headers of the request.

Returns:
the HTTP headers of the request.

clone

public abstract ClientRequest clone()
Clone the request.

Overrides:
clone in class java.lang.Object
Returns:
the cloned request.

create

public static final ClientRequest.Builder create()
Create a builder for building a new ClientRequestinstance.

Returns:
the builder.