|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.http.support.ResponseHeadersConfigurer
public class ResponseHeadersConfigurer
Responsible for configuring response headers. The configured headers contains the default headers overridden by those set through "headers" property.
Constructor Summary | |
---|---|
ResponseHeadersConfigurer()
|
|
ResponseHeadersConfigurer(String headersAsString)
|
Method Summary | |
---|---|
void |
configureDefaultHeaders(Map<String,String> map)
Allow configuration of default headers. |
static ResponseHeadersConfigurer |
emptyHeaders()
Factory method which creates a ResponseHeadersConfigurer containing no headers set. |
static ResponseHeadersConfigurer |
fromConfig(WroConfiguration config)
Factory method which creates a ResponseHeadersConfigurer containing headers used to disable cache in debug
mode. |
static ResponseHeadersConfigurer |
noCache()
Factory method which creates a ResponseHeadersConfigurer containing headers used to disable cache. |
void |
setHeaders(javax.servlet.http.HttpServletResponse response)
Method called for each request and responsible for setting response headers, used mostly for cache control. |
protected static void |
useDefaultsFromConfig(WroConfiguration config,
Map<String,String> map)
Deprecated. will be removed when other deprecated methods requiring this method will be removed. |
static ResponseHeadersConfigurer |
withHeadersSet(String headersAsString)
Factory method which creates a ResponseHeadersConfigurer containing headers provided as string (separated
by | character). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseHeadersConfigurer()
public ResponseHeadersConfigurer(String headersAsString)
headersAsString
- string representation of the headers to add separated by | character.Method Detail |
---|
public static ResponseHeadersConfigurer noCache()
ResponseHeadersConfigurer
containing headers used to disable cache.
public static ResponseHeadersConfigurer emptyHeaders()
ResponseHeadersConfigurer
containing no headers set.
public static ResponseHeadersConfigurer fromConfig(WroConfiguration config)
ResponseHeadersConfigurer
containing headers used to disable cache in debug
mode.
public static ResponseHeadersConfigurer withHeadersSet(String headersAsString)
ResponseHeadersConfigurer
containing headers provided as string (separated
by | character).
public void configureDefaultHeaders(Map<String,String> map)
map
- the Map
where key represents the header name, and value - header value.@Deprecated protected static void useDefaultsFromConfig(WroConfiguration config, Map<String,String> map)
WroConfiguration
. This exist for backward compatibility and
exist for internal usage only (do not call this method explicitly).
public void setHeaders(javax.servlet.http.HttpServletResponse response)
response
- HttpServletResponse
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |