org.apache.xindice.server
Interface Script
- All Superinterfaces:
- Named, Versioning
- All Known Implementing Classes:
- SimpleScript
- public interface Script
- extends Versioning
Objects that implement the Script interface are used in defining
custom-functionality for the Xindice server. The SimpleScript
class implements Script to provide common default behavior for a
Script.
- See Also:
SimpleScript
Method Summary |
int |
getAccessMethods()
getAccessMethods retrieves the access methods that someone executing
this Script will require access to in order to actually run the
Script. |
void |
run(Gateway gateway)
run executes the Script, passing a Gateway object to it to serve as
a resource provider and server gateway. |
Methods inherited from interface org.apache.xindice.util.Named |
getName |
ACCESS_NONE
public static final int ACCESS_NONE
ACCESS_READ
public static final int ACCESS_READ
ACCESS_WRITE
public static final int ACCESS_WRITE
ACCESS_EXECUTE
public static final int ACCESS_EXECUTE
ACCESS_DESIGN
public static final int ACCESS_DESIGN
ACCESS_ADMIN
public static final int ACCESS_ADMIN
run
public void run(Gateway gateway)
- run executes the Script, passing a Gateway object to it to serve as
a resource provider and server gateway.
- Parameters:
gateway
- The Gateway object to process
getAccessMethods
public int getAccessMethods()
- getAccessMethods retrieves the access methods that someone executing
this Script will require access to in order to actually run the
Script. The returned value will be an ORed (|) result that includes
all of the applicable access methods utilized.
- Returns:
- The access methods
Copyright (c) 1999-2001 The Apache Software Foundation