- All Implemented Interfaces:
- ServerContext.ServerContextHandler
public class SampleFileViewHandler
extends java.lang.Object
implements ServerContext.ServerContextHandler
Sample handler for showing files. The path required is the relative path to
the data directory.
Syntax: /<CONTEXT_PATH>?key=<SESSION_TOKEN
(required)&path=<PATH_TO_FILE (required)>
Returns: "ERROR: INCOMPLETE REQUEST DATA" (400), "ERROR: FILE
DOES NOT EXIST" (404), "ERROR: INTERNAL SERVER ERROR
(EXCEPTION)" (500) or the result in XML-format:
<response version="LIBRARY_VERSION"> <package
name="PACKAGE_NAME" description="PACKAGE_DESCRIPTION"
minversion="MINIMAL_LIBRARY_VERSION"> <action
name="ACTION_NAME" visibility="CONTEXT_VISIBILITY"
trigger="TRIGGER"/> <action name="ACTION_NAME"
visibility="CONTEXT_VISIBILITY" trigger="TRIGGER"/>
</package> </response>