|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.filters.CachingFilter.FileProperties
public class CachingFilter.FileProperties
A data structure for storing the HTTP headers
specified for the response that is being cached. These will be
used when returning the cached version of a response.
| Field Summary | |
|---|---|
private java.lang.String |
characterEncoding
The character-encoding header value. |
private java.lang.String |
contentType
The content-type header value. |
private java.lang.String |
fileName
The fully qualified name of the cache file. |
private java.util.Map |
headers
A map to hold all the additional header's specified for the response. |
private java.util.Locale |
locale
The locale header value. |
private boolean |
validResponse
A flag that indicates whether the cache file generated for the request should be treated as valid. |
| Constructor Summary | |
|---|---|
protected |
CachingFilter.FileProperties()
Default constructor. |
protected |
CachingFilter.FileProperties(java.lang.String fileName)
Create a new instance with the specified fileName. |
protected |
CachingFilter.FileProperties(java.lang.String fileName,
java.lang.String characterEncoding,
java.lang.String contentType,
java.util.Locale locale)
Create a new instance with the specified values. |
| Method Summary | |
|---|---|
java.lang.String |
getCharacterEncoding()
Returns characterEncoding. |
java.lang.String |
getContentType()
Returns contentType. |
java.lang.String |
getFileName()
Returns fileName. |
java.util.Map |
getHeaders()
Returns headers. |
java.util.Locale |
getLocale()
Returns locale. |
boolean |
getValidResponse()
Returns validResponse. |
protected void |
setCharacterEncoding(java.lang.String characterEncoding)
Set characterEncoding. |
protected void |
setContentType(java.lang.String contentType)
Set contentType. |
protected void |
setFileName(java.lang.String fileName)
Set fileName. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Add or modify the specified header with the value specified. |
protected void |
setHeaders(java.util.Map headers)
Set headers. |
protected void |
setHeadersFromFields(javax.servlet.ServletResponse response)
Set the HTTP header values denoting the type of
content being returned from the values stored in the instance
members. |
protected void |
setLocale(java.util.Locale locale)
Set locale. |
protected void |
setValidResponse(boolean validResponse)
Set validResponse. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String fileName
private java.lang.String characterEncoding
character-encoding header value.
private java.lang.String contentType
content-type header value.
private java.util.Locale locale
locale header value.
private boolean validResponse
false
when any response other than a SC_OK is
returned for the request.
private java.util.Map headers
| Constructor Detail |
|---|
protected CachingFilter.FileProperties()
protected CachingFilter.FileProperties(java.lang.String fileName)
fileName.
fileName - The fileName value to set.setFileName(java.lang.String)
protected CachingFilter.FileProperties(java.lang.String fileName,
java.lang.String characterEncoding,
java.lang.String contentType,
java.util.Locale locale)
fileName - The fileName value to set.characterEncoding - The characterEncoding value to
set.contentType - The contentType value to set.locale - The locale value to set.setFileName(java.lang.String),
setCharacterEncoding(java.lang.String),
setContentType(java.lang.String),
setLocale(java.util.Locale)| Method Detail |
|---|
protected void setHeadersFromFields(javax.servlet.ServletResponse response)
HTTP header values denoting the type of
content being returned from the values stored in the instance
members.
response - The HTTP response whose content attributes are
to be set.
public void setHeader(java.lang.String name,
java.lang.String value)
name - The name of the headervalue - The value of the headerpublic final java.lang.String getFileName()
fileName.
protected final void setFileName(java.lang.String fileName)
fileName.
fileName - The value to set.public final java.lang.String getCharacterEncoding()
characterEncoding.
protected final void setCharacterEncoding(java.lang.String characterEncoding)
characterEncoding.
characterEncoding - The value to set.public final java.lang.String getContentType()
contentType.
protected final void setContentType(java.lang.String contentType)
contentType.
contentType - The value to set.public final java.util.Locale getLocale()
locale.
protected final void setLocale(java.util.Locale locale)
locale.
locale - The value to set.public final boolean getValidResponse()
validResponse.
protected final void setValidResponse(boolean validResponse)
validResponse.
validResponse - The value to set.public final java.util.Map getHeaders()
headers.
protected final void setHeaders(java.util.Map headers)
headers.
headers - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||