org.apache.wink.client
Class MockHttpServer.MockHttpServerResponse

java.lang.Object
  extended by org.apache.wink.client.MockHttpServer.MockHttpServerResponse
Enclosing class:
MockHttpServer

public static class MockHttpServer.MockHttpServerResponse
extends Object


Constructor Summary
MockHttpServer.MockHttpServerResponse()
           
 
Method Summary
 int getMockResponseCode()
           
 byte[] getMockResponseContent()
           
 boolean getMockResponseContentEchoRequest()
           
 String getMockResponseContentType()
           
 Map<String,String> getMockResponseHeaders()
           
 void setMockResponseCode(int responseCode)
           
 void setMockResponseContent(byte[] content)
           
 void setMockResponseContent(String content)
           
 void setMockResponseContentEchoRequest(boolean echo)
           
 void setMockResponseContentType(String type)
           
 void setMockResponseHeader(String name, String value)
           
 void setMockResponseHeaders(Map<String,String> headers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHttpServer.MockHttpServerResponse

public MockHttpServer.MockHttpServerResponse()
Method Detail

setMockResponseHeaders

public void setMockResponseHeaders(Map<String,String> headers)

setMockResponseHeader

public void setMockResponseHeader(String name,
                                  String value)

getMockResponseHeaders

public Map<String,String> getMockResponseHeaders()

setMockResponseCode

public void setMockResponseCode(int responseCode)

getMockResponseCode

public int getMockResponseCode()

setMockResponseContent

public void setMockResponseContent(String content)

setMockResponseContent

public void setMockResponseContent(byte[] content)

getMockResponseContent

public byte[] getMockResponseContent()

setMockResponseContentType

public void setMockResponseContentType(String type)

getMockResponseContentType

public String getMockResponseContentType()

setMockResponseContentEchoRequest

public void setMockResponseContentEchoRequest(boolean echo)

getMockResponseContentEchoRequest

public boolean getMockResponseContentEchoRequest()


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.