|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gedeon.telnetservice.TelnetServiceExtensionAbstractImpl
public abstract class TelnetServiceExtensionAbstractImpl
Provides the implementation of the most basic API methods.
Constructor Summary | |
---|---|
TelnetServiceExtensionAbstractImpl()
|
Method Summary | |
---|---|
Integer |
getActionDistributionPriority()
The event distribution priority determines the order in which the listeners will receive an event, when there are more than one listener registered. |
ActionListener |
getActionListener()
Serve an instance of the ActionListener implemented by this service extension.Although it is recommended that the Action Listener implementation be stateless (with all state stored in the SessionState ), it is left to the implementing party to decide
whether to serve a singleton, an instance from a managed pool or a new instance at each call.This method will be called once per session, at session construction time, following the order described in the package documentation. |
OutputFormatSpi[] |
getOutputFormats()
Provide the OutpuFormat s that are provided by this extension. |
PromptDecorator |
getPromptDecorator()
Serve an instance of the ActionListener implemented by this service extension.Although it is recommended that the Action Listener implementation be stateless (with all state stored in the SessionState ), it is left to the implementing party to decide
whether to serve a singleton, an instance from a managed pool or a new instance at each call.This method will be called once per session, at session construction time, following the order described in the package documentation. |
Integer |
getPromptDecoratorPriority()
The prompt decoration priority determines the order in which the decorators will be called to participate in the prompt construction, when there are more than one decorator registered. The priority is from smallest to largest. Note that depending on the return value of the calls to the PromptDecorator.decoratePrompt(SessionState, Prompt) method in a
decorator will determine whether the next decorator in the list will be called at all --
some decorators with high priority may block lesser priority decorators from other subsequent
prompt modification. |
boolean |
providesActionListener()
This method will be checked before a call to TelnetServiceExtension.getActionListener() or
TelnetServiceExtension.getActionDistributionPriority() is made. |
boolean |
providesOutputFormats()
This method will be checked before calls to TelnetServiceExtension.getOutputFormats() , which will be called
if the returned value is true |
boolean |
providesPromptDecorator()
This method will be checked before a call to TelnetServiceExtension.getPromptDecorator() or
TelnetServiceExtension.getPromptDecoratorPriority() is made. |
void |
setActionDistributionPriority(Integer actionDistributionPriority)
|
void |
setPromptDecorationPriority(Integer promptDecoratorPriority)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.gedeon.telnetservice.TelnetServiceExtension |
---|
getDescription, getName |
Constructor Detail |
---|
public TelnetServiceExtensionAbstractImpl()
Method Detail |
---|
public boolean providesActionListener()
TelnetServiceExtension
TelnetServiceExtension.getActionListener()
or
TelnetServiceExtension.getActionDistributionPriority()
is made.
providesActionListener
in interface TelnetServiceExtension
false
public void setActionDistributionPriority(Integer actionDistributionPriority)
public Integer getActionDistributionPriority()
TelnetServiceExtension
handle*
methods in the
listener will determine whether the next listener in the list will receive the event at all --
some listeners with high priority may block the event from other subsequent listeners, this
is especially the case for authentication check before access, etc.
getActionDistributionPriority
in interface TelnetServiceExtension
public ActionListener getActionListener() throws ActionListenerCreateException
TelnetServiceExtension
ActionListener
implemented by this service extension.SessionState
), it is left to the implementing party to decide
whether to serve a singleton, an instance from a managed pool or a new instance at each call.
getActionListener
in interface TelnetServiceExtension
null
ActionListenerCreateException
- if there are errors providing the listener instance.public boolean providesPromptDecorator()
TelnetServiceExtension
TelnetServiceExtension.getPromptDecorator()
or
TelnetServiceExtension.getPromptDecoratorPriority()
is made.
providesPromptDecorator
in interface TelnetServiceExtension
false
public void setPromptDecorationPriority(Integer promptDecoratorPriority)
public Integer getPromptDecoratorPriority()
TelnetServiceExtension
PromptDecorator.decoratePrompt(SessionState, Prompt)
method in a
decorator will determine whether the next decorator in the list will be called at all --
some decorators with high priority may block lesser priority decorators from other subsequent
prompt modification.
getPromptDecoratorPriority
in interface TelnetServiceExtension
public PromptDecorator getPromptDecorator() throws PromptDecoratorCreateException
TelnetServiceExtension
ActionListener
implemented by this service extension.SessionState
), it is left to the implementing party to decide
whether to serve a singleton, an instance from a managed pool or a new instance at each call.
getPromptDecorator
in interface TelnetServiceExtension
null
PromptDecoratorCreateException
public boolean providesOutputFormats()
TelnetServiceExtension
TelnetServiceExtension.getOutputFormats()
, which will be called
if the returned value is true
providesOutputFormats
in interface TelnetServiceExtension
false
public OutputFormatSpi[] getOutputFormats()
TelnetServiceExtension
OutpuFormat
s that are provided by this extension. The returned
items will be injected into the pool of output formats and ordered by their priority.
getOutputFormats
in interface TelnetServiceExtension
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |