|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
This interface is used to supply implementations of SSI commands. They have to be registered in a CommandRegistry, which in turn is used by the SSIFrame.
CommandRegistry
Method Summary | |
---|---|
boolean |
acceptCaching()
return true if reply can be cached. |
Reply |
execute(SSIFrame resource,
Request request,
ArrayDictionary parameters,
java.util.Dictionary variables)
Executes this command. |
java.lang.String |
getName()
Returns the name of this command. |
java.lang.String |
getValue(java.util.Dictionary variables,
java.lang.String variable,
Request request)
Returns the (String) value of the given variable. |
Method Detail |
---|
Reply execute(SSIFrame resource, Request request, ArrayDictionary parameters, java.util.Dictionary variables)
It may handle conditional requests, except that if it replies with a status of HTTP.NOT_MODIFIED, it must still reply with a content (the same content that it would have returned for an inconditional request). This is because further SSI commands down the line may decide thay they have been modified, and then a content must be emitted by SSIFrame.
request
- the original HTTP requestparameters
- The parameters for this commandvariables
- The global variables for the parse
java.lang.String getName()
lookupCommand
method in the command registry.)
CommandRegistry.lookupCommand(java.lang.String)
java.lang.String getValue(java.util.Dictionary variables, java.lang.String variable, Request request)
boolean acceptCaching()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |