org.jboss.resteasy.client
Class ClientRequestFactory

java.lang.Object
  extended by org.jboss.resteasy.client.ClientRequestFactory

public class ClientRequestFactory
extends Object

Helper class that allows you to pre-initialize an Executor, preset some ClientRequest attributes (like follow redirects) and define some client-side interceptors you want applied

Version:
$Revision: 1 $
Author:
Solomon Duskis

Constructor Summary
ClientRequestFactory()
           
ClientRequestFactory(ClientExecutor executor, ResteasyProviderFactory providerFactory)
           
ClientRequestFactory(ClientExecutor executor, ResteasyProviderFactory providerFactory, URI base)
           
ClientRequestFactory(ClientExecutor executor, URI base)
           
ClientRequestFactory(ClientRequestFactory other)
           
ClientRequestFactory(URI base)
           
 
Method Summary
 ClientRequestFactory clone()
           
<T> T
createProxy(Class<T> clazz)
           
<T> T
createProxy(Class<T> clazz, String baseUri)
           
<T> T
createProxy(Class<T> clazz, URI baseUri)
           
 ClientRequest createRelativeRequest(String uriTemplate)
           
 ClientRequest createRequest(String uriTemplate)
           
 void enableDefaultInterceptors()
           
<T> T
get(String uriTemplate, Class<T> type, Object... params)
           
 URI getBase()
           
 ClientInterceptorRepositoryImpl getPrefixInterceptors()
           
<T> T
getRelative(String uriTemplate, Class<T> type, Object... params)
           
 ClientInterceptorRepositoryImpl getSuffixInterceptors()
           
 boolean isFollowRedirects()
           
 void setBase(URI base)
           
 void setFollowRedirects(boolean followRedirects)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientRequestFactory

public ClientRequestFactory()

ClientRequestFactory

public ClientRequestFactory(URI base)

ClientRequestFactory

public ClientRequestFactory(ClientExecutor executor,
                            URI base)

ClientRequestFactory

public ClientRequestFactory(ClientExecutor executor,
                            ResteasyProviderFactory providerFactory)

ClientRequestFactory

public ClientRequestFactory(ClientExecutor executor,
                            ResteasyProviderFactory providerFactory,
                            URI base)

ClientRequestFactory

public ClientRequestFactory(ClientRequestFactory other)
Method Detail

getBase

public URI getBase()

setBase

public void setBase(URI base)

enableDefaultInterceptors

public void enableDefaultInterceptors()

getPrefixInterceptors

public ClientInterceptorRepositoryImpl getPrefixInterceptors()

getSuffixInterceptors

public ClientInterceptorRepositoryImpl getSuffixInterceptors()

isFollowRedirects

public boolean isFollowRedirects()

setFollowRedirects

public void setFollowRedirects(boolean followRedirects)

clone

public ClientRequestFactory clone()
Overrides:
clone in class Object

createRelativeRequest

public ClientRequest createRelativeRequest(String uriTemplate)

createRequest

public ClientRequest createRequest(String uriTemplate)

getRelative

public <T> T getRelative(String uriTemplate,
                         Class<T> type,
                         Object... params)
              throws Exception
Throws:
Exception

get

public <T> T get(String uriTemplate,
                 Class<T> type,
                 Object... params)
      throws Exception
Throws:
Exception

createProxy

public <T> T createProxy(Class<T> clazz)

createProxy

public <T> T createProxy(Class<T> clazz,
                         String baseUri)

createProxy

public <T> T createProxy(Class<T> clazz,
                         URI baseUri)


Copyright © 2011. All Rights Reserved.