|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.vhi.script.api.AttributeEventHandler syntheticoperation.WriteOnlyAttributeHandler
public class WriteOnlyAttributeHandler
Event handler that prevents reading from attributes, while pretending to do so.
The web applications generated by the Web Builder sometimes insist upon reading from attributes, even when they are never displayed. This event handler "pretends" to read the attribute, but only returns a single blank.
Field Summary | |
---|---|
static java.lang.String |
description
|
static int |
readAttributeTimeout
Timeout in seconds for the readAttribute() event. |
static int |
writeAttributeTimeout
Timeout in seconds for the writeAttribute() event. |
Fields inherited from interface com.wrq.vhi.script.api.EventHandler |
---|
DEFAULT_TIMEOUT |
Constructor Summary | |
---|---|
WriteOnlyAttributeHandler()
|
Method Summary | |
---|---|
java.lang.String |
readAttribute(com.wrq.vhi.script.api.ReadAttributeEvent event)
Return a string containing a single blank when reading this attribute. |
void |
writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent event)
Write new value to this attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String description
public static final int readAttributeTimeout
public static final int writeAttributeTimeout
Constructor Detail |
---|
public WriteOnlyAttributeHandler()
Method Detail |
---|
public java.lang.String readAttribute(com.wrq.vhi.script.api.ReadAttributeEvent event) throws com.wrq.apptrieve.agent.ApptrieveException
readAttribute
in class com.wrq.vhi.script.api.AttributeEventHandler
event
- the event instance
com.wrq.apptrieve.agent.ApptrieveException
public void writeAttribute(com.wrq.vhi.script.api.WriteAttributeEvent event) throws com.wrq.apptrieve.agent.ApptrieveException
writeAttribute
in class com.wrq.vhi.script.api.AttributeEventHandler
event
- the event instance
com.wrq.apptrieve.agent.ApptrieveException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |