org.glassfish.jersey.client
Class JerseyInvocation.Builder

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

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


Constructor Summary
protected JerseyInvocation.Builder(URI uri, JerseyConfiguration jerseyConfiguration, JerseyClient client)
           
 
Method Summary
 JerseyInvocation.Builder acceptLanguage(Locale... locales)
           
 JerseyInvocation.Builder acceptLanguage(String... locales)
           
 JerseyInvocation.Builder allow(Set<String> methods)
           
 JerseyInvocation.Builder allow(String... methods)
           
 javax.ws.rs.client.AsyncInvoker async()
           
 JerseyInvocation build(String method)
           
 JerseyInvocation build(String method, javax.ws.rs.client.Entity<?> entity)
           
 JerseyInvocation buildDelete()
           
 JerseyInvocation buildGet()
           
 JerseyInvocation buildPost(javax.ws.rs.client.Entity<?> entity)
           
 JerseyInvocation buildPut(javax.ws.rs.client.Entity<?> entity)
           
 JerseyInvocation.Builder cacheControl(javax.ws.rs.core.CacheControl cacheControl)
           
 JerseyConfiguration configuration()
           
 JerseyInvocation.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.GenericType<T> responseType)
           
 javax.ws.rs.core.Response get()
           
<T> T
get(Class<T> responseType)
           
<T> T
get(javax.ws.rs.core.GenericType<T> responseType)
           
 javax.ws.rs.core.Response head()
           
 JerseyInvocation.Builder header(String name, Object value)
           
 JerseyInvocation.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.GenericType<T> responseType)
           
<T> T
method(String name, javax.ws.rs.core.GenericType<T> responseType)
           
 javax.ws.rs.core.Response options()
           
<T> T
options(Class<T> responseType)
           
<T> T
options(javax.ws.rs.core.GenericType<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.GenericType<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.GenericType<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.GenericType<T> responseType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JerseyInvocation.Builder

protected JerseyInvocation.Builder(URI uri,
                                   JerseyConfiguration jerseyConfiguration,
                                   JerseyClient client)
Method Detail

build

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

build

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

buildGet

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

buildDelete

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

buildPost

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

buildPut

public JerseyInvocation 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 JerseyInvocation.Builder acceptLanguage(Locale... locales)
Specified by:
acceptLanguage in interface javax.ws.rs.client.Invocation.Builder

acceptLanguage

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

cookie

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

allow

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

allow

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

cacheControl

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

header

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

headers

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

configuration

public JerseyConfiguration 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.GenericType<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.GenericType<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.GenericType<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.GenericType<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.GenericType<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.GenericType<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.GenericType<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.GenericType<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.