public class AdditionalHeader extends Object implements Serializable
Constructor and Description |
---|
AdditionalHeader() |
AdditionalHeader(String header,
String value,
Pattern pathRegex,
Pattern mimeTypeRegex) |
Modifier and Type | Method and Description |
---|---|
String |
getHeader() |
Pattern |
getMimeTypeRegex() |
Pattern |
getPathRegex() |
String |
getValue() |
void |
setHeader(String header) |
void |
setMimeTypeRegex(Pattern mimeTypeRegex) |
void |
setPathRegex(Pattern pathRegex) |
void |
setValue(String value) |
public AdditionalHeader()
public AdditionalHeader(String header, String value, Pattern pathRegex, Pattern mimeTypeRegex)
header
- The name of the header to be delivered.value
- The value of the header to be delivered.pathRegex
- A regular expression to match the extra path info as returned
by HttpServletRequest.getPathInfo()
after any alias
matching as per ResourceServlet.setAliases(java.util.Map)
.
If null
, any path matches.mimeTypeRegex
- A regular expression to match the MIME type of a delivered resource.
If null
, any MIME type matches.public Pattern getPathRegex()
public void setPathRegex(Pattern pathRegex)
pathRegex
- A regular expression to match the extra path info as returned
by HttpServletRequest.getPathInfo()
after any alias
matching as per ResourceServlet.setAliases(java.util.Map)
.
If null
, any path matches.public Pattern getMimeTypeRegex()
public void setMimeTypeRegex(Pattern mimeTypeRegex)
mimeTypeRegex
- A regular expression to match the MIME type of a delivered resource.
If null
, any MIME type matches.public String getHeader()
public void setHeader(String header)
header
- The name of the header to be delivered.public String getValue()
public void setValue(String value)
value
- The value of the header to be delivered.Copyright © 2018 Clazzes.org. All rights reserved.