|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gedeon.telnetservice.PromptDecoratorDefaultImpl
public class PromptDecoratorDefaultImpl
The default prompt decorator implementation, decorates the prompt by appending "> ".
Constructor Summary | |
---|---|
PromptDecoratorDefaultImpl()
|
Method Summary | |
---|---|
boolean |
decoratePrompt(SessionState sessionState,
Prompt prompt)
The prompt construction is done incrementally by calling the registered decorators in a sequence determined by their priority (given by the serving extension) relative to the other decorators' priorities. The provided prompt is initialized and may already contain content from higher priority decorators. |
void |
initialize(SessionState sessionState)
Is called at session creation to allow for the decorator to initialize state. Note: It is recommended that decorators be stateless, and all state be stored in the session state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PromptDecoratorDefaultImpl()
Method Detail |
---|
public void initialize(SessionState sessionState) throws PromptDecoratorInitializationException
PromptDecorator
initialize
in interface PromptDecorator
sessionState
- the current session state. At this point the state will not have been set to
active yet. This will be done after all initialization is done.
PromptDecoratorInitializationException
public boolean decoratePrompt(SessionState sessionState, Prompt prompt)
PromptDecorator
decoratePrompt
in interface PromptDecorator
sessionState
- the session state
true
to allow lesser priority decorators to decorate the prompt.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |