public class EZDefaultFileHandler extends ngmObject
name | required | default | description |
EZDefaultFileHandler.TextFile.Extention.alias | .html, .htm | a text file name extention which should be loaded as an HTMLTemplate . | |
EZDefaultFileHandler.TextFile.SendLastModified | false | If true, it sends "Last-Modified" header for text files handled by HTMLTemplate . | |
EZDefaultFileHandler.TextFile.Plain.<path-alias> | NA | path name under which the text files will be processed as plain files. | |
EZDefaultFileHandler.Default.Filename | index.html | default filename | |
EZDefaultFileHandler.MimeType.content-type | NA | extention csv list, e.g., EZDefaultFileHandler.MimeType.image/jpeg=.jpeg,.jpg | |
EZDefaultFileHandler.ServletAPIContext.Path | root context | the path name of the ServletAPI context. | |
EZDefaultFileHandler.RequestURI.Type | latest | 'original' or 'latest'. | |
EZDefaultFileHandler.NotFoundHandler.Class | default handler class | class name of the implementation of EZDefaultFileHandler.NotFoundHandler. The default implementation does nothing. As a result, 404 not found will be sent. | |
EZDefaultFileHandler.DEBUG_MODE | false | true/false |
修飾子とタイプ | クラスと説明 |
---|---|
static interface |
EZDefaultFileHandler.NotFoundHandler |
C_BACKSLASH, C_BLOCK_CLOSE, C_BLOCK_OPEN, C_COMMA, C_CR, C_DOUBLE_BYTE_SPACE, C_DOUBLE_QUATATION, C_DOUBLE_QUOTATION, C_EQUAL, C_HYPHEN, C_LF, C_SINGLE_QUATATION, C_SINGLE_QUOTATION, C_SPACE, C_TAB, S_BACKSLASH, S_BLOCK_CLOSE, S_BLOCK_OPEN, S_COMMA, S_CR, S_CRLF, S_DOUBLE_QUATATION, S_DOUBLE_QUOTATION, S_EQUAL, S_HYPHEN, S_LF, S_SINGLE_QUATATION, S_SINGLE_QUOTATION, S_SPACE, S_TAB
修飾子とタイプ | メソッドと説明 |
---|---|
void |
checkLastModified(EZServletContext context,
long last_modified)
If-Modified-Sinceヘッダの値と比較し、一致していれば304 not modifiedを返す。
|
HTMLComponent |
handleRequest(EZServletContext context) |
static EZDefaultFileHandler |
newInstance(EZServletConfig sconfig) |
clone, debug, debug, equals_n, equals_n2, getBooleanProperty, getBooleanProperty, getGroupedProperties, getIntProperty, getIntProperty, getLog, getLongProperty, getLongProperty, getProperties, getPropertiesForMe, getProperty, getProperty, getShortProperty, getShortProperty, setLog, setNgmObject, setProperties, sysoutprintln
public static EZDefaultFileHandler newInstance(EZServletConfig sconfig)
public HTMLComponent handleRequest(EZServletContext context)
public void checkLastModified(EZServletContext context, long last_modified)
context
- last_modified
- EZServletContext.handleLastModified(long)