|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.web.base.proxy.HTTPResponse
public class HTTPResponse
Allows to define some HTTP response
Constructor Summary | |
---|---|
HTTPResponse()
Build a new object with the default status code. |
|
HTTPResponse(String statusCode)
Build an answer with the given status code. |
Method Summary | |
---|---|
byte[] |
getContent()
Gets the array of bytes of this answer. |
void |
print(String string)
Append text into the body. |
void |
println(String string)
Append text into the body. |
void |
setBodyBytes(byte[] bodyBytes)
|
void |
setContentType(String contentType)
|
void |
setRefresh(boolean refresh)
Refresh mode is enabled or disabled. |
void |
setTitle(String title)
Sets the title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPResponse()
public HTTPResponse(String statusCode)
statusCode
- given codeMethod Detail |
---|
public void setTitle(String title)
title
- given HTML titlepublic void println(String string)
string
- the given string objectpublic void print(String string)
string
- the given string objectpublic void setRefresh(boolean refresh)
refresh
- if true, send in the answer a refresh codepublic byte[] getContent()
public void setContentType(String contentType)
public void setBodyBytes(byte[] bodyBytes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |