org.jboss.resteasy.client
Class ClientRequestFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.