Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description of Properties


Property NameTypeDefaultImportanceDescriptionExample for Value
response.http.headersstring""
low
mediumDefines names of headers which will be separated by comma.
The name could be any string which uniquely identify header. 
default,
hr
header1,
accounting
header2
response.http.headers.{name}.header.configstring""lowDefine a set of
header configuration
HTTP headers for header defined by {name} which will be one of names defined in property response.http.headers.
Regarding more
Detailed explanation see Detailed Explanation section.set X-Frame-Options: DENY,
setDate Expires
"add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0
response.http.headers.{name}.included.pathsstring""lowIt is comma separated values of included path specs applied to HTTP headers. See path spec rules section.
/connectors/connector1/topics/*
response.http.headers.{name}.excluded.pathsstring""lowIt is comma separated values of excluded path specs applied to HTTP headers. See path spec rules section./connectors/connector1/status
response.http.headers.{name}.included.mime.typesstring""lowIt is comma separated values of included mime types applied to HTTP headersapplication/json
response.http.headers.{name}.excluded.mime.typesstring""low

It is comma separated values of excluded mime types applied to HTTP headers.

application/xml
response.http.headers.{name}.included.http.methodsstring""lowIt is comma separated values of included http methods applied to HTTP headersPOST,PUT
response.http.headers.{name}.excluded.http.methodsstring""lowIt is comma separated values of excluded http methods applied to HTTP headersGET


Detailed Explanation


response.http.headers.{name}.header
.config

...

[header name] specify name of header.
[header value] specify value for the header. We need to put double quotes around the value if the value contains commas because we use comma as separator for different headers

Example:

Code Block
languagetext
header.config=set X-Frame-Options: DENY, "add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0

...

It is optional. it is comma separated values of included path specs applied to header.config. See path spec rules section.

Example:

Code Block
languagetext
included.paths=^/test/0$

excluded.paths

It is optional. it is comma separated values of excluded path specs applied to header.configSee path spec rules section.

Example:

Code Block
languagetext
excluded.paths=^/test/0$

included.mime.types

It is optional. it is comma separated values of included mime types applied to header.config.

Example:

...

...

languagetext

...

included.mime.types=application/json


excluded.mime.types

It is optional. it is comma separated values of excluded mime types applied to header.config.

Example:

Code Block
languagetext
excluded.mime.types=application/xml

included.http.methods

It is optional. it is comma separated values of included http methods applied to header.config.

Example:

Code Block
languagetext
included.http.methods=POST,PUT

...

It is optional. it is comma separated values of excluded http methods applied to header.config.

Example:

Code Block
languagetext
excluded.http.methods=GET

Path Spec Rules:

  • If the spec starts with ^, the spec is assumed to be a regex based path spec and will match with normal Java regex rules.
  • If the spec starts with /, the spec is assumed to be a Servlet url-pattern rules path spec for either an exact match or prefix based match.
  • If the spec starts with *., the spec is assumed to be a Servlet url-pattern rules path spec for a suffix based match.
  • All other syntaxes are unsupported.

...

Code Block
response.http.headers.header1default.header.config=set X-Frame-Options: DENY, "add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0
response.http.headers.header1default.header.included.paths=^/test/0$/connectors/connector1/topics/*
response.http.headers.header1default.excluded.paths=^/connectors/test1/0$     connector1/status
response.http.headers.header1default.included.mime.types=application/json
response.http.headers.header1default.excluded.mime.types=application/xml
response.http.headers.header1default.included.http.methods=POST,PUT
response.http.headers.header1default.excluded.http.methods=GET
response.http.headers.header2header1.header.config=set X-Frame-Options: DENY, "add Cache-Control: no-cache, no-store, must-revalidate", setDate Expires: 31540000000, addDate Last-Modified: 0
response.http.headers.header2header1.header.included.paths=^/test2/0$
response.http.headers.header2header1.excluded.paths=^/test3/0$     
response.http.headers.header2header1.included.mime.types=application/json
response.http.headers.header2header1.excluded.mime.types=application/xml
response.http.headers.header2header1.included.http.methods=POST,PUT
response.http.headers.header2header1.excluded.http.methods=GET

...