org.jboss.resteasy.client
Class ClientRequestFactory

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

public class ClientRequestFactory
extends java.lang.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, java.net.URI base)
           
ClientRequestFactory(ClientExecutor executor, java.net.URI base)
           
ClientRequestFactory(ClientRequestFactory other)
           
ClientRequestFactory(java.net.URI base)
           
 
Method Summary
 ClientRequestFactory clone()
           
<T> T
createProxy(java.lang.Class<T> clazz)
           
<T> T
createProxy(java.lang.Class<T> clazz, java.lang.String baseUri)
           
<T> T
createProxy(java.lang.Class<T> clazz, java.net.URI baseUri)
           
 ClientRequest createRelativeRequest(java.lang.String uriTemplate)
           
 ClientRequest createRequest(java.lang.String uriTemplate)
           
 void enableDefaultInterceptors()
           
<T> T
get(java.lang.String uriTemplate, java.lang.Class<T> type, java.lang.Object... params)
           
 java.net.URI getBase()
           
 ClientInterceptorRepositoryImpl getPrefixInterceptors()
           
<T> T
getRelative(java.lang.String uriTemplate, java.lang.Class<T> type, java.lang.Object... params)
           
 ClientInterceptorRepositoryImpl getSuffixInterceptors()
           
 boolean isFollowRedirects()
           
 void setBase(java.net.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(java.net.URI base)

ClientRequestFactory

public ClientRequestFactory(ClientExecutor executor,
                            java.net.URI base)

ClientRequestFactory

public ClientRequestFactory(ClientExecutor executor,
                            ResteasyProviderFactory providerFactory)

ClientRequestFactory

public ClientRequestFactory(ClientExecutor executor,
                            ResteasyProviderFactory providerFactory,
                            java.net.URI base)

ClientRequestFactory

public ClientRequestFactory(ClientRequestFactory other)
Method Detail

getBase

public java.net.URI getBase()

setBase

public void setBase(java.net.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 java.lang.Object

createRelativeRequest

public ClientRequest createRelativeRequest(java.lang.String uriTemplate)

createRequest

public ClientRequest createRequest(java.lang.String uriTemplate)

getRelative

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

get

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

createProxy

public <T> T createProxy(java.lang.Class<T> clazz)

createProxy

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

createProxy

public <T> T createProxy(java.lang.Class<T> clazz,
                         java.net.URI baseUri)


Copyright © 2010. All Rights Reserved.