| java.lang.Object org.w3c.jigsaw.ssi.commands.IfCommand
IfCommand | public class IfCommand implements ControlCommand(Code) | | Implementation of the SSI if command.
author: Benoit Mahe |
Method Summary | |
public boolean | acceptCaching() return true if reply can be cached. | protected boolean | check(CommandRegistry registry, ArrayDictionary parameters, Dictionary variables, Request request) | public Reply | execute(SSIFrame ssiframe, Request request, ArrayDictionary parameters, Dictionary variables) Executes this command. | public String | getName() Returns the name of this command. | protected static int | getPosition(String name) | public String | getValue(Dictionary variables, String var, Request request) Returns the (String) value of the given variable. | public int | jumpTo(SSIFrame ssiframe, Request request, CommandRegistry registry, ArrayDictionary parameters, Dictionary variables) Give the next position in the structure witch
store the SSIFrame. | public void | setPosition(SSIFrame ssiframe, Request request, CommandRegistry registry, ArrayDictionary parameters, Dictionary variables, int position) register the command position in the structure
witch store the SSIFrame. |
acceptCaching | public boolean acceptCaching()(Code) | | return true if reply can be cached.
a boolean. |
execute | public Reply execute(SSIFrame ssiframe, Request request, ArrayDictionary parameters, Dictionary variables)(Code) | | Executes this command. Might modify variables.
Must not modify the parameters.
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.
Parameters: request - the original HTTP request Parameters: parameters - The parameters for this command Parameters: variables - The global variables for the parse a Reply with the output from the command |
|
|