|
Alignment API and Server 3.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.service.HTMLAServProfile.Response
public class HTMLAServProfile.Response
HTTP response. Return one of these from serve().
Field Summary | |
---|---|
InputStream |
data
Data of the response, may be null. |
Properties |
header
Headers for the HTTP response. |
String |
mimeType
MIME type of content, e.g. |
String |
msg
|
String |
status
HTTP status code after processing, e.g. |
Constructor Summary | |
---|---|
HTMLAServProfile.Response()
Default constructor: response = HTTP_OK, data = mime = 'null' |
|
HTMLAServProfile.Response(String status,
String mimeType,
InputStream data)
Basic constructor. |
|
HTMLAServProfile.Response(String status,
String mimeType,
String txt)
Convenience method that makes an InputStream out of given text. |
Method Summary | |
---|---|
void |
addHeader(String name,
String value)
Adds given line to the header. |
String |
getContentType()
|
String |
getData()
|
String |
getStatus()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String status
public String mimeType
public InputStream data
public Properties header
public String msg
Constructor Detail |
---|
public HTMLAServProfile.Response()
public HTMLAServProfile.Response(String status, String mimeType, InputStream data)
public HTMLAServProfile.Response(String status, String mimeType, String txt)
Method Detail |
---|
public void addHeader(String name, String value)
public String getStatus()
public String getContentType()
public String getData()
|
Alignment API and Server 3.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |