public class EZServletConfig extends ngmObject
name | required | default | description |
EZServlet.Request.Charset | NA | ||
EZServlet.Response.Charset | NA | Charset name of content-type http header | |
EZServlet.Response.EncodingType | depends of the application server | EncodingType of PrintWriter for response | |
EZServlet.PathDependingCharset.Register.name | NA | ||
EZServlet.PathDependingCharset.name.Request.Charset | NA | ||
EZServlet.PathDependingCharset.name.Response.Charset | NA | Charset name of content-type http header | |
EZServlet.PathDependingCharset.name.Response.EncodingType | depends of the application server | EncodingType of PrintWriter for response | |
EZServlet.PathDependingCharset.name.Path.path | NA | ||
EZServlet.Context.Class | com.ngMAT.servlet.EZServletContext | ||
EZServlet.Request.URL.Decode | false | true/false | |
EZServlet.Request.URI.RemoveContextPath | false | true/false | |
Application.LogFile | standard out | application log file name | |
Application.LogFile.OutputClass | normal | log output class. list of "debug"/"trace". normal output cannot be stopped. | |
Application.LogFile.Timestamp.Format | yyyy/MM/dd HH:mm:ss | timestamp format string. | |
EZServlet.Trace.Performance | NA | true/false. If true, "REQUESTED" and "ALL DONE" will be logged to application log file with trace mode. | |
EZServlet.DEBUG_MODE | NA | true/false | |
EZServlet.DEBUG_MODE.Log.Filename | NA | ||
EZServlet.DEBUG_MODE.Log.Stdout | true | If it is set to false, no debug messages will be printed on stdout. | |
EZServlet.DEBUG_MODE.Log.DumpHeaders | false | If it is set to true, header fields will be written to the debug log. | |
EZServlet.DEBUG_MODE.Log.Excluded.Extentions | false | csv list of path extensions to be excluded. | |
EZServlet.DEBUG_MODE.Log.Filter.Keywords | NA | csv list of keywords to be excluded from debug log output. When this option is specified, FilterableLog with KeywordFilter will be used to print debug log messages. | |
EZServlet.TRACE.SEND_ERROR | NA | true/false. when true, will write stack trace log to the application log file on EZServlet#sendError call. | |
EZServlet.TRACE.SEND_ERROR.COMPRESSED | NA | true/false. when true, will write compressed trace log to the application log file on EZServlet#sendError call. | |
EZServlet.TemplateFolder | * | NA | top directory of template folders |
EZServlet.TemplateVariable.<varname> | NA | ||
EZServlet.TargetServletSpec | 2.0 | 2.0 / 2.2 / 2.3 / 2.3a / 2.3b / 2.3c | |
EZServlet.ErrorTemplate | NA | ||
EZServlet.ErrorHTML | EZServlet default error html | ||
EZServlet.Send500.OnError | false | If true, EZServlet will send 500 as status code on error and will NOT use the error template. | |
EZServlet.ForceUrlEncodingOnRedirection | true | true/false | |
EZServlet.ForceStreamFlush | true | true/false | |
EZServlet.ForceStreamClose | true | true/false | |
EZServlet.ExceptionHandelr | NA | Exception handler class name. The class handles exceptions caught in EZServlet layer. | |
EZServlet.ExtraHeader.<headername> | NA | You can add extra static headers. | |
EZServlet.Register.Filter.<filteraliasname>.Class | NA | filter class name. Filters can be get via EZServletContext#getRegisteredFilter(<filteraliasname>). | |
EZServlet.Filter.HTMLTemplateContent.<filteraliasname>.Class | NA | filter class name. Filters will do filter after HTMLTemplate to String conversion. | |
EZServlet.Filter.HTMLTemplateContent.<filteraliasname>.Follows | NA | Alias name of leading filter instance. | |
EZServlet.Filter.HTMLTemplateStringValue.<filteraliasname>.Class | NA | filter class name. Filters will do filter on setting values to tags. | |
EZServlet.Filter.HTMLTemplateStringValue.<filteraliasname>.Follows | NA | Alias name of leading filter instance. | |
EZServlet.Filter.HTMLTemplateFormElementValue.<filteraliasname>.Class | NA | filter class name. Filters will do filter on setting values to '#fe' marked tags. | |
EZServlet.Filter.HTMLTemplateFormElementValue.<filteraliasname>.Follows | NA | Alias name of leading filter instance. | |
EZServlet.Filter.Parameter.<filteraliasname>.Class | NA | filter class name. Filters will do filter on getting parameter values. | |
EZServlet.Filter.Parameter.<filteraliasname>.Follows | NA | Alias name of leading filter instance. | |
EZServlet.Filter.ByParameter.<filtersetaliasname>>.Target | NA | param name csv | |
EZServlet.Filter.ByParameter.<filtersetaliasname>>.Timing | before | independent / after / before. relative timing to the set of parameter filters specified with "EZServlet.Filter.Parameter". | |
EZServlet.Filter.ByParameter.<filtersetaliasname>>. | NA | classname | |
EZServlet.Filter.ByParameter.<filtersetaliasname>>. | NA | other filteraliasname in the same filterset to follow | |
EZSCustomtag.DedicatedFilter.For.Parameter.Class> | NA | filter name for Parameter | |
EZSCustomtag.DedicatedFilter.For.ParameterEnumeration.Class> | NA | filter name for ParameterEnumeration | |
EZSCustomtag.DedicatedFilter.For.ParameterToHidden.Class> | NA | filter name for ParameterToHidden | |
EZServlet.OrganizeCookie | true | true/false | |
EZServlet.PropertiesWatcher.Config | NA | properties file name for FileWatcher . If the properties file is not found, it will work with default settings. | |
EZServlet.Session.Branch.ID.Length | 8 | id length of session branch. see EZServletContext#createSessionBranch() . | |
EZServlet.Session.EZSessionManager.Use | false | set true when you use EZSessionManager . | |
EZSessionManager.Timeout | 30 | The timeout minutes for EZSessionManager. | |
EZSessionManager.Monitor.Interval | 5 | The monitor interval in minutes for EZSessionManager. | |
EZServlet.TemplatePathHandler | DefaultPathHandler | template path handler class name. | |
EZServlet.EncodingTypeHandler | DefaultEncodingTypeHandler | encoding type handler class name. | |
EZServlet.Request.Virtual.Header.headername | NA | Virtual request header setting for debugging. Value must be in the form "sourcetype:sourcename". Following source types are available : "cookie", "parameter", "constant". The source name is the cookie name or the parameter name. If you set the type to "constant", the value should follows the source type. | |
EZServlet.PrivateSession.SessionID.Name | ezsessionid | The name of the EZServlet private session ID. | |
EZServlet.PrivateSession.SessionID.Length | 8 | The length of the EZServlet private session ID. | |
EZServlet.PrivateSession.SessionID.Path | / | The cookie path of the EZServlet private session ID. | |
EZServlet.PrivateSession.SessionID.UseCookie | true | If false, the context will read the private session id from the parameter. | |
EZServlet.PrivateSession.Object.Name | _#ezsession#_ | The name of the EZServlet private session object in the http session object map. | |
EZServlet.PrivateSession.SessionID.IsSecure | true | The EZServlet private session id SHOULD always be secure but if you cannot use SSL environment on testing your application, set false. This is only for debugging. DON'T use in your production stage. | |
EZServlet.PrivateSession.SessionID.IsHttpOnly | true | The EZServlet private session id SHOULD always be HttpOnly but if you want it NOT HttpOnly on testing your application, set false. This is only for debugging. DON'T use in your production stage. | |
EZServlet.Redirector.HTML | REDIRECTOR_HTML | HTML string to use in EZServletContext#sendRedirectorHTML() . This HTML shuld sould have JavaScript code to redirect and EZServlet template tags : "title", "message" and "target_url". | |
EZServlet.Redirector.HTML.File | NA | HTML string source file to use in EZServletContext#sendRedirectorHTML() . This HTML file shuld sould have JavaScript code to redirect and EZServlet template tags : "title", "message" and "target_url". | |
EZServlet.Redirector.Default.Title | NA | The default page title of redirector page. | |
EZServlet.Redirector.Default.Message | NA | The default message of redirector page. | |
EZServlet.Cookie.Default.Domain | NA | The default domain. | |
EZServlet.Cookie.Default.Path | NA | The default path. | |
EZServlet.MultiPart.ContentHandler.AutoCreate | disabled | enabled/disabled | |
EZServlet.MultiPart.ContentHandler.SkipToEndOnAcceptError | true | true/false. when true, discard all not-processed contents from the InputStream. 現在はファイルサイズ超過例外の場合のみスキップする。 | |
EZServlet.MultiPart.AutoParse | disabled | enabled/disabled | |
EZServlet.MultiPart.File.StoreType | memory | memory/file | |
EZServlet.MultiPart.File.Directory | current directory | directory name for the file part to be stored when the "StoreType" is file. | |
EZServlet.MultiPart.File.Name.Prefix | none | name prefix for the file part to be stored when the "StoreType" is file. | |
EZServlet.MultiPart.File.MaxSize | -1 | acceptable max size of a file part. -1 means, that there is no limit. | |
EZServlet.ParameterHandler.Class | same class as EZServlet.Context.Class | class name of the parameter handler class. | |
EZServlet.ACL.Check.Target | remote | "remote" or "client". when "client" is specified, ACL will be processed with EZServletContext.getClientAddr() .when "remote", with EZServletContext.getRemoteAddr() | |
EZServlet.ACL.IPAddress.Deny.StatusCode | 403(FORBIDDEN) | The status code which sould be returned when the request is denied by the ip-address ACL config. | |
EZServlet.ACL.IPAddress.Register.<alias> | NA | The ip address, the hostname or the ip address followed by a slash and mask bit count which should be accepted. When there is no ip ACL, all address will be accepted. | |
EZServlet.ACL.DEBUG_MODE | false | when true, debug information for ALC will be written to EZServlet log file | |
EZServlet.Accept.Host.List | NA | Acceptable "Host" header values csv list. EZservlet will send 400 BAD REQUEST on the request with a host header which is not registered. | |
EZServlet.Forward.HandOver.NewCookies | false | When true, new cookies set before forwarding will be handed over to the forwarded instance. | |
EZServlet.Redirect.TargetHost.List | NA | Acceptable hostname values csv list for sendRedirect / sendRedirectorHTML. sendRedirect / sendRedirectorHTML will throw BadURLException with a url which has not registered hostname. | |
EZServlet.Version.Ambiguous | false | if true, Server-Framework header will be ambiguous expression. | |
EZServlet.Version.Hide | false | if true, Server-Framework header will not sent. | |
EZServlet.LastModified.UseGMT | false | if true, the time zone of last-modified header will be GMT. | |
EZServlet.Disable.Instance.servlet instance name | false | if true, the servlet instance will be disabled and will return 404 NOT FOUND on all requests for it. | |
EZServlet.Disable.Class.servlet full class name or simple class name | false | if true, the servlet instance will be disabled and will return 404 NOT FOUND on all requests for it. |
HTMLTemplate
are passed to HTMLTemplate instances.
修飾子とタイプ | クラスと説明 |
---|---|
class |
EZServletConfig.FilterChain |
修飾子とタイプ | フィールドと説明 |
---|---|
java.lang.String |
ApplicationName
アプリケーションサーブレットクラスのパッケージ名を含まない名称。
|
java.lang.Class<?> |
context_handler_class |
java.lang.String |
context_handler_name
Context handler name.
|
java.lang.Class<?> |
ContextClass |
java.lang.String |
ContextClassName |
boolean |
DebugMode |
boolean |
decode_request_url |
static java.lang.String |
DEFAULT_TARGET_SERVLET_SPEC
Default value of target servlet specification version : 2.0"
|
java.lang.String |
error_template |
java.lang.String |
ErrorHTMLString |
ExceptionHandler |
exception_handler |
java.util.Vector<KeyValuePackage> |
extra_headers |
boolean |
force_stream_close
Force stream closing every after request processing.
|
boolean |
force_stream_flush
Force stream flushing every after request processing.
|
boolean |
force_url_encoding_on_redirection
Force url enconding on redirection.
|
java.util.TimeZone |
gmt_timezone |
java.lang.String |
instance_name
サーブレットインスタンス名。
|
java.util.TimeZone |
my_timezone |
java.lang.Class<?> |
parameter_handler_class |
java.lang.String |
parameter_handler_name |
boolean |
remove_context_path_from_uri |
java.lang.String |
target_servlet_spec
Target servlet specification version.
|
static java.lang.String |
TARGET_SERVLET_SPEC_2_0
Target servlet specification version : 2.0"
|
static java.lang.String |
TARGET_SERVLET_SPEC_2_2
Target servlet specification version : 2.2"
|
static java.lang.String |
TARGET_SERVLET_SPEC_2_3
Target servlet specification version : 2.3"
|
static java.lang.String |
TARGET_SERVLET_SPEC_2_3a
Target servlet specification version : 2.3a"
|
static java.lang.String |
TARGET_SERVLET_SPEC_2_3b
Target servlet specification version : 2.3b"
|
static java.lang.String |
TARGET_SERVLET_SPEC_2_3c
Target servlet specification version : 2.3c"
|
protected java.lang.String |
template_folder |
CoolProperties |
template_variables |
java.lang.String |
TemplateFolder
非推奨です。
|
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
コンストラクタと説明 |
---|
EZServletConfig() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected EZServletContext |
createNullContext()
Creates a dummy context instance for use in config initialization.
|
protected EZServletContext |
createNullContext(EZServletContext base_context)
Creates a dummy context instance.
|
static CoolProperties |
extractTemplateVariables(CoolProperties src) |
boolean |
getBooleanProperty(java.lang.String name)
Service method to get boolean value of property.
|
boolean |
getBooleanProperty(java.lang.String name,
boolean default_value)
Service method to get boolean value of property.
|
Log |
getDebugLog() |
EZServletFilter |
getDedicatedFilter(EZServletContext context,
EZSCustomTag ct) |
EZServletFilter |
getFilterAt(java.util.Vector<EZServletConfig.FilterChain> filters,
int index) |
int |
getIntProperty(java.lang.String name)
Service method to get int value of property.
|
int |
getIntProperty(java.lang.String name,
int default_value)
Service method to get int value of property.
|
long |
getLongProperty(java.lang.String name)
Service method to get long value of property.
|
long |
getLongProperty(java.lang.String name,
long default_value)
Service method to get long value of property.
|
CoolProperties |
getPresetProperties() |
java.lang.String |
getPrivateSessionID2Name() |
java.lang.String |
getPrivateSessionIDName() |
CoolProperties |
getPropertiesForMe()
キーが(サーブレットクラス名).
|
java.lang.String |
getRequestCharSet() |
java.lang.String |
getResponseCharset() |
java.lang.String |
getResponseEncodingType() |
EZServlet |
getServlet()
Returns the servlet which uses this instance.
|
static EZServlet |
getServlet(java.lang.String instance_name) |
java.lang.String |
getServletCharSet() |
short |
getShortProperty(java.lang.String name)
Service method to get short value of property.
|
short |
getShortProperty(java.lang.String name,
short default_value)
Service method to get short value of property.
|
protected HTMLTemplate |
getTemplate(java.lang.String name) |
java.lang.String |
getWebApplicationInitParameter(java.lang.String name)
returns web application context wide init parameter.
|
java.util.Enumeration<java.lang.String> |
getWebApplicationInitParameterNames()
returns web application context wide init parameter.
|
void |
init()
You can overides to set up your configurations, and your don't have to call super.init().
|
clone, debug, debug, equals_n, equals_n2, getGroupedProperties, getLog, getProperties, getPropertiesForMe, getProperty, getProperty, setLog, setNgmObject, setProperties, sysoutprintln
public java.lang.String ApplicationName
public java.lang.String instance_name
public boolean DebugMode
@Deprecated public java.lang.String TemplateFolder
protected java.lang.String template_folder
public java.lang.String ContextClassName
public java.lang.Class<?> ContextClass
public java.lang.String ErrorHTMLString
public java.lang.String error_template
public ExceptionHandler exception_handler
public CoolProperties template_variables
public java.util.Vector<KeyValuePackage> extra_headers
public boolean decode_request_url
public boolean remove_context_path_from_uri
public static final java.lang.String DEFAULT_TARGET_SERVLET_SPEC
public static final java.lang.String TARGET_SERVLET_SPEC_2_0
public static final java.lang.String TARGET_SERVLET_SPEC_2_2
public static final java.lang.String TARGET_SERVLET_SPEC_2_3
public static final java.lang.String TARGET_SERVLET_SPEC_2_3a
public static final java.lang.String TARGET_SERVLET_SPEC_2_3b
public static final java.lang.String TARGET_SERVLET_SPEC_2_3c
public java.lang.String target_servlet_spec
public java.lang.String context_handler_name
public java.lang.Class<?> context_handler_class
public java.lang.String parameter_handler_name
public java.lang.Class<?> parameter_handler_class
public java.util.TimeZone my_timezone
public java.util.TimeZone gmt_timezone
public boolean force_url_encoding_on_redirection
public boolean force_stream_flush
public boolean force_stream_close
public static EZServlet getServlet(java.lang.String instance_name)
public CoolProperties getPresetProperties()
public Log getDebugLog()
public java.lang.String getResponseCharset()
public java.lang.String getResponseEncodingType()
public java.lang.String getServletCharSet()
public java.lang.String getRequestCharSet()
public java.lang.String getPrivateSessionIDName()
public java.lang.String getPrivateSessionID2Name()
public void init()
public EZServletFilter getFilterAt(java.util.Vector<EZServletConfig.FilterChain> filters, int index)
public EZServlet getServlet()
public short getShortProperty(java.lang.String name)
getShortProperty
クラス内 ngmObject
name
- property namepublic short getShortProperty(java.lang.String name, short default_value)
getShortProperty
クラス内 ngmObject
name
- property namedefault_value
- default valuepublic int getIntProperty(java.lang.String name)
getIntProperty
クラス内 ngmObject
name
- property namepublic int getIntProperty(java.lang.String name, int default_value)
getIntProperty
クラス内 ngmObject
name
- property namedefault_value
- default valuepublic long getLongProperty(java.lang.String name)
getLongProperty
クラス内 ngmObject
name
- property namepublic long getLongProperty(java.lang.String name, long default_value)
getLongProperty
クラス内 ngmObject
name
- property namedefault_value
- default valuepublic boolean getBooleanProperty(java.lang.String name)
getBooleanProperty
クラス内 ngmObject
name
- property namepublic boolean getBooleanProperty(java.lang.String name, boolean default_value)
getBooleanProperty
クラス内 ngmObject
name
- property namedefault_value
- default valueprotected HTMLTemplate getTemplate(java.lang.String name)
protected EZServletContext createNullContext()
protected EZServletContext createNullContext(EZServletContext base_context)
public static CoolProperties extractTemplateVariables(CoolProperties src)
public java.lang.String getWebApplicationInitParameter(java.lang.String name)
public java.util.Enumeration<java.lang.String> getWebApplicationInitParameterNames()
public EZServletFilter getDedicatedFilter(EZServletContext context, EZSCustomTag ct)
public CoolProperties getPropertiesForMe()