docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 6.1System Developer Manual JavaReference for Roxen Java classes
Copyright © 2018, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

AbstractLocationModule
ExperimentalModule
FileExtensionModule
Frame
HTTP
LastResortModule
LocationModule
Module
ParserModule
ProviderModule
RXML
RXML.Backtrace
RoxenClassLoader
RoxenConfiguration
RoxenFileResponse
RoxenLib
RoxenRXMLResponse
RoxenRequest
RoxenResponse
RoxenStringResponse
SecurityModule
SimpleTagCaller
UniqueModule

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.