org.mactor.brokers.http
Class HttpResponse
java.lang.Object
org.mactor.brokers.http.HttpResponse
public class HttpResponse
- extends java.lang.Object
Represents a HTTP Reponse
- Author:
- Lars Ivar Almli
Method Summary |
void |
addHeader(java.lang.String name,
java.lang.String value)
|
byte[] |
getData()
|
java.lang.String |
getHeader(java.lang.String headerName)
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
|
void |
setData(byte[] data)
|
void |
setData(org.dom4j.Document doc)
|
void |
setData(java.lang.String data)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResponse
public HttpResponse()
getHeader
public java.lang.String getHeader(java.lang.String headerName)
addHeader
public void addHeader(java.lang.String name,
java.lang.String value)
setData
public void setData(java.lang.String data)
throws java.io.IOException
- Throws:
java.io.IOException
setData
public void setData(org.dom4j.Document doc)
throws java.io.IOException
- Throws:
java.io.IOException
setData
public void setData(byte[] data)
getHeaders
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
getData
public byte[] getData()
Copyright © 2008. All Rights Reserved.