org.jboss.resteasy.client.core.executors
Class InMemoryClientExecutor

java.lang.Object
  extended by org.jboss.resteasy.client.core.executors.InMemoryClientExecutor
All Implemented Interfaces:
ClientExecutor

public class InMemoryClientExecutor
extends java.lang.Object
implements ClientExecutor

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  java.net.URI baseUri
           
protected  Dispatcher dispatcher
           
 
Constructor Summary
InMemoryClientExecutor()
           
InMemoryClientExecutor(Dispatcher dispatcher)
           
 
Method Summary
 ClientRequest createRequest(java.lang.String uriTemplate)
           
 ClientRequest createRequest(UriBuilder uriBuilder)
           
protected  BaseClientResponse createResponse(ClientRequest request, MockHttpResponse mockResponse)
           
static BaseClientResponse.BaseClientResponseStreamFactory createStreamFactory(MockHttpResponse mockResponse)
           
 ClientResponse execute(ClientRequest request)
           
 java.net.URI getBaseUri()
           
 Dispatcher getDispatcher()
           
 Registry getRegistry()
           
 void loadHttpMethod(ClientRequest request, MockHttpRequest mockHttpRequest)
           
 void setBaseUri(java.net.URI baseUri)
           
protected  void setHeaders(MockHttpResponse mockResponse, BaseClientResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dispatcher

protected Dispatcher dispatcher

baseUri

protected java.net.URI baseUri
Constructor Detail

InMemoryClientExecutor

public InMemoryClientExecutor()

InMemoryClientExecutor

public InMemoryClientExecutor(Dispatcher dispatcher)
Method Detail

getBaseUri

public java.net.URI getBaseUri()

setBaseUri

public void setBaseUri(java.net.URI baseUri)

createRequest

public ClientRequest createRequest(java.lang.String uriTemplate)
Specified by:
createRequest in interface ClientExecutor

createRequest

public ClientRequest createRequest(UriBuilder uriBuilder)
Specified by:
createRequest in interface ClientExecutor

execute

public ClientResponse execute(ClientRequest request)
                       throws java.lang.Exception
Specified by:
execute in interface ClientExecutor
Throws:
java.lang.Exception

createResponse

protected BaseClientResponse createResponse(ClientRequest request,
                                            MockHttpResponse mockResponse)

setHeaders

protected void setHeaders(MockHttpResponse mockResponse,
                          BaseClientResponse response)

createStreamFactory

public static BaseClientResponse.BaseClientResponseStreamFactory createStreamFactory(MockHttpResponse mockResponse)

loadHttpMethod

public void loadHttpMethod(ClientRequest request,
                           MockHttpRequest mockHttpRequest)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getRegistry

public Registry getRegistry()

getDispatcher

public Dispatcher getDispatcher()


Copyright © 2010. All Rights Reserved.