org.glassfish.jersey.client
Class Invocation.Builder

java.lang.Object
  extended by org.glassfish.jersey.client.Invocation.Builder
All Implemented Interfaces:
javax.ws.rs.client.Invocation.Builder, javax.ws.rs.client.SyncInvoker
Enclosing class:
Invocation

public static class Invocation.Builder
extends Object
implements javax.ws.rs.client.Invocation.Builder


Constructor Summary
protected Invocation.Builder(URI uri, Configuration configuration, Client client)
           
 
Method Summary
 Invocation.Builder acceptLanguage(Locale... locales)
           
 Invocation.Builder acceptLanguage(String... locales)
           
 Invocation.Builder allow(Set<String> methods)
           
 Invocation.Builder allow(String... methods)
           
 javax.ws.rs.client.AsyncInvoker async()
           
 Invocation build(String method)
           
 Invocation build(String method, javax.ws.rs.client.Entity<?> entity)
           
 Invocation buildDelete()
           
 Invocation buildGet()
           
 Invocation buildPost(javax.ws.rs.client.Entity<?> entity)
           
 Invocation buildPut(javax.ws.rs.client.Entity<?> entity)
           
 Invocation.Builder cacheControl(javax.ws.rs.core.CacheControl cacheControl)
           
 Configuration configuration()
           
 Invocation.Builder cookie(javax.ws.rs.core.Cookie cookie)
           
 javax.ws.rs.core.Response delete()
           
<T> T
delete(Class<T> responseType)
           
<T> T
delete(javax.ws.rs.core.TypeLiteral<T> responseType)
           
 javax.ws.rs.core.Response get()
           
<T> T
get(Class<T> responseType)
           
<T> T
get(javax.ws.rs.core.TypeLiteral<T> responseType)
           
 javax.ws.rs.core.Response head()
           
 Invocation.Builder header(String name, Object value)
           
 Invocation.Builder headers(javax.ws.rs.core.RequestHeaders headers)
           
 javax.ws.rs.core.Response method(String name)
           
<T> T
method(String name, Class<T> responseType)
           
 javax.ws.rs.core.Response method(String name, javax.ws.rs.client.Entity<?> entity)
           
<T> T
method(String name, javax.ws.rs.client.Entity<?> entity, Class<T> responseType)
           
<T> T
method(String name, javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.TypeLiteral<T> responseType)
           
<T> T
method(String name, javax.ws.rs.core.TypeLiteral<T> responseType)
           
 javax.ws.rs.core.Response options()
           
<T> T
options(Class<T> responseType)
           
<T> T
options(javax.ws.rs.core.TypeLiteral<T> responseType)
           
 javax.ws.rs.core.Response post(javax.ws.rs.client.Entity<?> entity)
           
<T> T
post(javax.ws.rs.client.Entity<?> entity, Class<T> responseType)
           
<T> T
post(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.TypeLiteral<T> responseType)
           
 javax.ws.rs.core.Response put(javax.ws.rs.client.Entity<?> entity)
           
<T> T
put(javax.ws.rs.client.Entity<?> entity, Class<T> responseType)
           
<T> T
put(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.TypeLiteral<T> responseType)
           
 javax.ws.rs.core.Response trace(javax.ws.rs.client.Entity<?> entity)
           
<T> T
trace(javax.ws.rs.client.Entity<?> entity, Class<T> responseType)
           
<T> T
trace(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.TypeLiteral<T> responseType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invocation.Builder

protected Invocation.Builder(URI uri,
                             Configuration configuration,
                             Client client)
Method Detail

build

public Invocation build(String method)
Specified by:
build in interface javax.ws.rs.client.Invocation.Builder

build

public Invocation build(String method,
                        javax.ws.rs.client.Entity<?> entity)
Specified by:
build in interface javax.ws.rs.client.Invocation.Builder

buildGet

public Invocation buildGet()
Specified by:
buildGet in interface javax.ws.rs.client.Invocation.Builder

buildDelete

public Invocation buildDelete()
Specified by:
buildDelete in interface javax.ws.rs.client.Invocation.Builder

buildPost

public Invocation buildPost(javax.ws.rs.client.Entity<?> entity)
Specified by:
buildPost in interface javax.ws.rs.client.Invocation.Builder

buildPut

public Invocation buildPut(javax.ws.rs.client.Entity<?> entity)
Specified by:
buildPut in interface javax.ws.rs.client.Invocation.Builder

async

public javax.ws.rs.client.AsyncInvoker async()
Specified by:
async in interface javax.ws.rs.client.Invocation.Builder

acceptLanguage

public Invocation.Builder acceptLanguage(Locale... locales)
Specified by:
acceptLanguage in interface javax.ws.rs.client.Invocation.Builder

acceptLanguage

public Invocation.Builder acceptLanguage(String... locales)
Specified by:
acceptLanguage in interface javax.ws.rs.client.Invocation.Builder

cookie

public Invocation.Builder cookie(javax.ws.rs.core.Cookie cookie)
Specified by:
cookie in interface javax.ws.rs.client.Invocation.Builder

allow

public Invocation.Builder allow(String... methods)
Specified by:
allow in interface javax.ws.rs.client.Invocation.Builder

allow

public Invocation.Builder allow(Set<String> methods)
Specified by:
allow in interface javax.ws.rs.client.Invocation.Builder

cacheControl

public Invocation.Builder cacheControl(javax.ws.rs.core.CacheControl cacheControl)
Specified by:
cacheControl in interface javax.ws.rs.client.Invocation.Builder

header

public Invocation.Builder header(String name,
                                 Object value)
Specified by:
header in interface javax.ws.rs.client.Invocation.Builder

headers

public Invocation.Builder headers(javax.ws.rs.core.RequestHeaders headers)
Specified by:
headers in interface javax.ws.rs.client.Invocation.Builder

configuration

public Configuration configuration()
Specified by:
configuration in interface javax.ws.rs.client.Invocation.Builder

get

public javax.ws.rs.core.Response get()
                              throws javax.ws.rs.client.InvocationException
Specified by:
get in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

get

public <T> T get(Class<T> responseType)
      throws javax.ws.rs.client.InvocationException
Specified by:
get in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

get

public <T> T get(javax.ws.rs.core.TypeLiteral<T> responseType)
      throws javax.ws.rs.client.InvocationException
Specified by:
get in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

put

public javax.ws.rs.core.Response put(javax.ws.rs.client.Entity<?> entity)
                              throws javax.ws.rs.client.InvocationException
Specified by:
put in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

put

public <T> T put(javax.ws.rs.client.Entity<?> entity,
                 Class<T> responseType)
      throws javax.ws.rs.client.InvocationException
Specified by:
put in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

put

public <T> T put(javax.ws.rs.client.Entity<?> entity,
                 javax.ws.rs.core.TypeLiteral<T> responseType)
      throws javax.ws.rs.client.InvocationException
Specified by:
put in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

post

public javax.ws.rs.core.Response post(javax.ws.rs.client.Entity<?> entity)
                               throws javax.ws.rs.client.InvocationException
Specified by:
post in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

post

public <T> T post(javax.ws.rs.client.Entity<?> entity,
                  Class<T> responseType)
       throws javax.ws.rs.client.InvocationException
Specified by:
post in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

post

public <T> T post(javax.ws.rs.client.Entity<?> entity,
                  javax.ws.rs.core.TypeLiteral<T> responseType)
       throws javax.ws.rs.client.InvocationException
Specified by:
post in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

delete

public javax.ws.rs.core.Response delete()
                                 throws javax.ws.rs.client.InvocationException
Specified by:
delete in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

delete

public <T> T delete(Class<T> responseType)
         throws javax.ws.rs.client.InvocationException
Specified by:
delete in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

delete

public <T> T delete(javax.ws.rs.core.TypeLiteral<T> responseType)
         throws javax.ws.rs.client.InvocationException
Specified by:
delete in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

head

public javax.ws.rs.core.Response head()
                               throws javax.ws.rs.client.InvocationException
Specified by:
head in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

options

public javax.ws.rs.core.Response options()
                                  throws javax.ws.rs.client.InvocationException
Specified by:
options in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

options

public <T> T options(Class<T> responseType)
          throws javax.ws.rs.client.InvocationException
Specified by:
options in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

options

public <T> T options(javax.ws.rs.core.TypeLiteral<T> responseType)
          throws javax.ws.rs.client.InvocationException
Specified by:
options in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

trace

public javax.ws.rs.core.Response trace(javax.ws.rs.client.Entity<?> entity)
                                throws javax.ws.rs.client.InvocationException
Specified by:
trace in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

trace

public <T> T trace(javax.ws.rs.client.Entity<?> entity,
                   Class<T> responseType)
        throws javax.ws.rs.client.InvocationException
Specified by:
trace in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

trace

public <T> T trace(javax.ws.rs.client.Entity<?> entity,
                   javax.ws.rs.core.TypeLiteral<T> responseType)
        throws javax.ws.rs.client.InvocationException
Specified by:
trace in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

method

public javax.ws.rs.core.Response method(String name)
                                 throws javax.ws.rs.client.InvocationException
Specified by:
method in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

method

public <T> T method(String name,
                    Class<T> responseType)
         throws javax.ws.rs.client.InvocationException
Specified by:
method in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

method

public <T> T method(String name,
                    javax.ws.rs.core.TypeLiteral<T> responseType)
         throws javax.ws.rs.client.InvocationException
Specified by:
method in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

method

public javax.ws.rs.core.Response method(String name,
                                        javax.ws.rs.client.Entity<?> entity)
                                 throws javax.ws.rs.client.InvocationException
Specified by:
method in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

method

public <T> T method(String name,
                    javax.ws.rs.client.Entity<?> entity,
                    Class<T> responseType)
         throws javax.ws.rs.client.InvocationException
Specified by:
method in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException

method

public <T> T method(String name,
                    javax.ws.rs.client.Entity<?> entity,
                    javax.ws.rs.core.TypeLiteral<T> responseType)
         throws javax.ws.rs.client.InvocationException
Specified by:
method in interface javax.ws.rs.client.SyncInvoker
Throws:
javax.ws.rs.client.InvocationException


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.