java.util.List relatedUpdates
setProperties()
; subsequent calls to setRelationFieldValue()
will add DSResponse
objects for every change in related data sources.java.lang.Boolean generateRelatedUpdates
execute()
call. true
- related updates will be generated; false
- related updates will not be generated; null
- related updates will be generated only for "add" and "update" operations, related updates will not be generated for "remove" operation.java.util.Map additionalFields
DSRequest
.java.lang.String configName
java.lang.Class beanClass
java.lang.String beanName
java.lang.Class idClass
boolean strictSQLFiltering
java.lang.Boolean useQualifiedClassName
false
- simple class name usage. To resolve class name collisions this setting can be set to true
(should be used with provider supporting fully-qualified class name usage).javax.persistence.EntityManager em
java.lang.Object tx
boolean shouldRollBackTransaction
JPAConnectionHolder connectionHolder
java.util.Map additionalFields
DSRequest
.java.util.List relatedUpdates
setProperties()
; subsequent calls to setRelationFieldValue()
will add DSResponse
objects for every change in related data sources.java.lang.Boolean generateRelatedUpdates
execute()
call. true
- related updates will be generated; false
- related updates will not be generated; null
- related updates will be generated only for "add" and "update" operations, related updates will not be generated for "remove" operation.boolean enablePrettyPrinting
java.lang.String configFile
java.util.Map expires
mimeType:seconds to expiry
. This allows you to specify how long the browser is allowed to cache the file maching a given mime type from the time the file is originally served. For example, to set javascript files to expire in 1 hour and gif images to expire in 1 day: text/javascript:3600,image/gif:86400
The comparison is an exact match of the specified mimeType against what the container returns for the intercepted URL. So, for example, if you specified text/javascript:3600
here, but the container was configured to return application/x-javascript
for *.js (a common mimeType for javascript), then your expiry setting for *.js files would not apply.
java.util.Map charsets
mimeType:charset
This allows you to specify a character encoding for a given mimeType. For example, to set javascript files to be served with the UTF-8 encoding, set this value to: text/javascript:UTF-8
For mimeTypes that do not have a charset specified, no charset setting is applied, so the container default is used.
The comparison is an exact match of the specified mimeType against what the container returns for the intercepted URL. So, for example, if you specified text/javascript:UTF-8
here, but the container was configured to return application/x-javascript
for *.js (a common mimeType for javascript), then your charset setting for *.js files would not apply.
int stripPathComponents
java.lang.String proxyHost
If the JVM executing this servlet can make direct HTTP connections to the relevant hosts, leave this parameter unset.
java.lang.String rulesFile
var rules = [ "match:#http://www.slashdot.org/#", ];Note: The rulesFile path is treated as relative to webRoot.
HttpProxyServlet.rules
boolean useURLCache
rulesFile
, the URL Cache will cache the result of the application of relevant rules for any given URL. The URL Cache drastically speeds up subsequent rule applications at the cost of memory. Note: the cache is automatically disabled if there are no rules to apply. Performance: The URL cache is an LRU Map. If you're using this servlet on a large-scale site with a lot of unique URLs, you may want to tune its size via the urlCacheSize
parameter to balance between memory usage and performance.
HttpProxyServlet.urlCacheSize
int urlCacheSize
java.util.List rules
rules
init-param of this servlet. For example: <servlet> <servlet-name>HttpProxyServlet</servlet-name> <servlet-class>com.isomorphic.servlet.HttpProxyServlet</servlet-class> <init-param> <param-name>rules</param-name> <param-value> match:|http://www.slashdot.org/| </param-value> </init-param> </servlet>Each rule consists of a type (either "match:" or "block:") followed by a regular expression. Each URL that is sent to the servlet for proxying is compared against the list of rules, and the first one that applies is used. This allows you to, for example, block certain URLs within a domain that is otherwise permitted. NOTE: The presence of rules implies that a restriction is required, so the servlet will block any URL that does not match a "match:"-type rule, as well as any URL that explicitly matches a "block:"-type rule. If you want a completely open proxy (ie, no restrictions on the URLs that can be proxied), leave rules unspecified. If you want an arrangement whereby you block certain URL patterns and allow all others through, specify a catch-all as your last rule - something like
"match:|http:/|"
HttpProxyServlet.rulesFile
boolean acceptInvalidAndExpiredSSLCertificates
int proxyPort
If the JVM executing this servlet can make direct HTTP connections to the relevant hosts, leave this parameter unset.