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 java.lang.Object


Constructor Summary
MockHttpServer.MockHttpServerResponse()
           
 
Method Summary
 int getMockResponseCode()
           
 byte[] getMockResponseContent()
           
 boolean getMockResponseContentEchoRequest()
           
 java.lang.String getMockResponseContentType()
           
 java.util.Map<java.lang.String,java.lang.String> getMockResponseHeaders()
           
 void setMockResponseCode(int responseCode)
           
 void setMockResponseContent(byte[] content)
           
 void setMockResponseContent(java.lang.String content)
           
 void setMockResponseContentEchoRequest(boolean echo)
           
 void setMockResponseContentType(java.lang.String type)
           
 void setMockResponseHeader(java.lang.String name, java.lang.String value)
           
 void setMockResponseHeaders(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.String> headers)

setMockResponseHeader

public void setMockResponseHeader(java.lang.String name,
                                  java.lang.String value)

getMockResponseHeaders

public java.util.Map<java.lang.String,java.lang.String> getMockResponseHeaders()

setMockResponseCode

public void setMockResponseCode(int responseCode)

getMockResponseCode

public int getMockResponseCode()

setMockResponseContent

public void setMockResponseContent(java.lang.String content)

setMockResponseContent

public void setMockResponseContent(byte[] content)

getMockResponseContent

public byte[] getMockResponseContent()

setMockResponseContentType

public void setMockResponseContentType(java.lang.String type)

getMockResponseContentType

public java.lang.String getMockResponseContentType()

setMockResponseContentEchoRequest

public void setMockResponseContentEchoRequest(boolean echo)

getMockResponseContentEchoRequest

public boolean getMockResponseContentEchoRequest()


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