public class WithResponse extends Object
Constructor and Description |
---|
WithResponse(int status,
ContentInfo contentInfo,
org.springframework.extensions.webscripts.Cache cache) |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value)
Adds a response header with the given name and value.
|
org.springframework.extensions.webscripts.Cache |
getCache() |
ContentInfo |
getContentInfo() |
Map<String,List<String>> |
getHeaders() |
int |
getStatus() |
void |
setCache(org.springframework.extensions.webscripts.Cache cache)
Sets the Cache control
|
void |
setContentInfo(ContentInfo contentInfo)
Sets the information about the content: mimetype, encoding, locale, length
|
void |
setHeader(String name,
String value)
Set a response header with the given name and value.
|
void |
setStatus(int status)
Sets the Response Status
|
public WithResponse(int status, ContentInfo contentInfo, org.springframework.extensions.webscripts.Cache cache)
public void setContentInfo(ContentInfo contentInfo)
contentInfo
- public void setStatus(int status)
status
- intpublic void setHeader(String name, String value)
name
- header namevalue
- header valuepublic void addHeader(String name, String value)
name
- header namevalue
- header valuepublic void setCache(org.springframework.extensions.webscripts.Cache cache)
cache
- cache controlpublic ContentInfo getContentInfo()
public int getStatus()
public org.springframework.extensions.webscripts.Cache getCache()
Copyright © 2005–2017 Alfresco Software. All rights reserved.