|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhomenet.responsive.response.AbstractResponse
public abstract class AbstractResponse
ID: $Id: AbstractResponse.java,v 1.12 2005/09/09 03:33:00 dhirwinjr Exp $ Description:
| Field Summary | |
|---|---|
protected boolean |
hasExecuted
Flag to indicate whether the response has been executed. |
protected java.lang.Long |
id
Response ID. |
| Constructor Summary | |
|---|---|
AbstractResponse()
Default constructor. |
|
| Method Summary | |
|---|---|
abstract void |
execute()
Execute the response. |
protected java.lang.String |
formatToString(java.lang.String message)
Format a string for use with the toString() method. |
java.lang.Long |
getId()
Get the response ID. |
java.lang.String |
getResponseDescription()
Get a description of the response. |
boolean |
hasExecuted()
Check whether the current response has executed. |
protected void |
setId(java.lang.Long id)
Set the response ID. |
protected void |
setResponseDescription(java.lang.String desc)
Set the response description. |
abstract java.lang.String |
toString()
All response classes must implement this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Long id
protected boolean hasExecuted
| Constructor Detail |
|---|
public AbstractResponse()
| Method Detail |
|---|
protected void setId(java.lang.Long id)
id - The message IDpublic java.lang.Long getId()
protected void setResponseDescription(java.lang.String desc)
desc - public java.lang.String getResponseDescription()
public boolean hasExecuted()
public abstract void execute()
throws ResponsiveException
ResponsiveExceptionpublic abstract java.lang.String toString()
toString in class java.lang.ObjectObject.toString()protected java.lang.String formatToString(java.lang.String message)
message - The message to be formatted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||