|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigsaw.ssi.commands.IfCommand
public class IfCommand
Implementation of the SSI if
command.
Field Summary | |
---|---|
protected static java.util.Hashtable |
ifstore
|
Constructor Summary | |
---|---|
IfCommand()
|
Method Summary | |
---|---|
boolean |
acceptCaching()
return true if reply can be cached. |
protected boolean |
check(CommandRegistry registry,
ArrayDictionary parameters,
java.util.Dictionary variables,
Request request)
|
Reply |
execute(SSIFrame ssiframe,
Request request,
ArrayDictionary parameters,
java.util.Dictionary variables)
Executes this command. |
java.lang.String |
getName()
Returns the name of this command. |
protected static int |
getPosition(java.lang.String name)
|
java.lang.String |
getValue(java.util.Dictionary variables,
java.lang.String var,
Request request)
Returns the (String) value of the given variable. |
int |
jumpTo(SSIFrame ssiframe,
Request request,
CommandRegistry registry,
ArrayDictionary parameters,
java.util.Dictionary variables)
Give the next position in the structure witch store the SSIFrame. |
void |
setPosition(SSIFrame ssiframe,
Request request,
CommandRegistry registry,
ArrayDictionary parameters,
java.util.Dictionary variables,
int position)
register the command position in the structure witch store the SSIFrame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.Hashtable ifstore
Constructor Detail |
---|
public IfCommand()
Method Detail |
---|
public boolean acceptCaching()
acceptCaching
in interface Command
public java.lang.String getValue(java.util.Dictionary variables, java.lang.String var, Request request)
getValue
in interface Command
protected static int getPosition(java.lang.String name) throws ControlCommandException
ControlCommandException
public void setPosition(SSIFrame ssiframe, Request request, CommandRegistry registry, ArrayDictionary parameters, java.util.Dictionary variables, int position)
setPosition
in interface ControlCommand
public Reply execute(SSIFrame ssiframe, 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.
execute
in interface Command
request
- the original HTTP requestparameters
- The parameters for this commandvariables
- The global variables for the parse
protected boolean check(CommandRegistry registry, ArrayDictionary parameters, java.util.Dictionary variables, Request request)
public int jumpTo(SSIFrame ssiframe, Request request, CommandRegistry registry, ArrayDictionary parameters, java.util.Dictionary variables) throws ControlCommandException
jumpTo
in interface ControlCommand
ControlCommandException
- if action failed.public java.lang.String getName()
lookupCommand
method in the command registry.)
getName
in interface Command
CommandRegistry.lookupCommand(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |