docs.roxen.comBack to normal mode
DocsRoxen2.2Programmer ManualAppendix A - Java
Copyright © 2004, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

FileExtensionModule

: Interface FileExtensionModule

com.roxen.roxen
Interface FileExtensionModule

public abstract interface FileExtensionModule

The interface for modules which handle a specific file extension.

See Also:
Module

Method Summary
 RoxenResponse handleFileExtension(java.io.File file, java.lang.String ext, RoxenRequest id)
          Request that the module processes a file with a certain extension.
 java.lang.String[] queryFileExtensions()
          Returns a list of of file extensions that should be handled by this module.
 

Method Detail

queryFileExtensions


public java.lang.String[] queryFileExtensions()
Returns a list of of file extensions that should be handled by this module. The extensions should be returned in lower case, and without the period (.).
Returns:
an array of strings with file extension names

handleFileExtension


public RoxenResponse handleFileExtension(java.io.File file,
                                         java.lang.String ext,
                                         RoxenRequest id)
Request that the module processes a file with a certain extension.
Parameters:
file - the file to be processed
ext - the file extension
id - the request object
Returns:
a response, or null if the module will not process this file.