|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.atom.beans.HttpResponseBean
public class HttpResponseBean
Simple bean class that models an HTTP response. This class is used by the Atom layer's batch functionality in order to return the values defined in the S-RAMP specification (a list of HTTP responses as multipart/mixed content).
| Constructor Summary | |
|---|---|
HttpResponseBean(int code,
String status)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
getBody()
|
javax.ws.rs.core.MediaType |
getBodyType()
Returns the content type of the body. |
int |
getCode()
|
Map<String,String> |
getHeaders()
|
String |
getStatus()
|
void |
setBody(Object body,
javax.ws.rs.core.MediaType type)
|
void |
setBodyType(javax.ws.rs.core.MediaType type)
Returns the content type of the body. |
void |
setCode(int code)
|
void |
setHeader(String name,
String value)
Sets a single header. |
void |
setHeaders(Map<String,String> headers)
|
void |
setStatus(String status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpResponseBean(int code,
String status)
code - status - | Method Detail |
|---|
public int getCode()
public void setCode(int code)
code - the code to setpublic String getStatus()
public void setStatus(String status)
status - the status to setpublic Map<String,String> getHeaders()
public void setHeader(String name,
String value)
name - value - public void setHeaders(Map<String,String> headers)
headers - the headers to setpublic Object getBody()
public void setBody(Object body,
javax.ws.rs.core.MediaType type)
body - the body to settype - the content type of the bodypublic javax.ws.rs.core.MediaType getBodyType()
public void setBodyType(javax.ws.rs.core.MediaType type)
type -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||