public class HttpResponseBean extends Object
| Constructor and Description |
|---|
HttpResponseBean(int code,
String status)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public HttpResponseBean(int code,
String status)
code - status - 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 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 - Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.