|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thinger.service.httptool.ActionResult
public class ActionResult
An action result.
It can be: QUIET - which means there is no response. The server will just put a polite OK message. PAGE - there is a page response. The page name is available from this object with a call to getPageResult(); ACTION - there is a new action to perform. The request should be relayed to it. The new action can be gotten from a call to getActionResult() ERROR - there was an error. the response will be handled by the service. However, you can influence which page is used for error by setting it with a call to setPageResult().
Version History
EPG - Initial - 17 NOV 07
Nested Class Summary | |
---|---|
static class |
ActionResult.Type
|
Field Summary | |
---|---|
ActionResult.Type |
type
|
Constructor Summary | |
---|---|
ActionResult(ActionResult.Type type)
Constructor. |
Method Summary | |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add a header. |
java.lang.String |
getActionResult()
Get the action result name. |
java.util.Collection<java.lang.String> |
getHeaders()
Get header values. |
java.io.InputStream |
getInputStream()
Get input stream. |
java.lang.String |
getPageResult()
Get the result page name. |
java.lang.String |
getResponse()
Get the response line. |
void |
setActionResult(java.lang.String actionName)
Set the action result name. |
void |
setInputStream(java.io.InputStream inputStream)
Set input stream. |
void |
setPageResult(java.lang.String pageName)
Set the page result name. |
void |
setResponse(java.lang.String reponse)
Set the response line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ActionResult.Type type
Constructor Detail |
---|
public ActionResult(ActionResult.Type type)
type
- the type.Method Detail |
---|
public java.lang.String getPageResult()
public void setPageResult(java.lang.String pageName)
pageName
- the page name. Null is acceptable.public java.lang.String getActionResult()
public void setActionResult(java.lang.String actionName)
actionName
- the name. Null is acceptable.public java.util.Collection<java.lang.String> getHeaders()
public void addHeader(java.lang.String name, java.lang.String value)
name
- Namevalue
- Valuepublic java.lang.String getResponse()
public void setResponse(java.lang.String reponse)
reponse
- the response.public void setInputStream(java.io.InputStream inputStream)
inputStream
- the data stream.public java.io.InputStream getInputStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |