org.apache.struts.chain.servlet
public class: SetContentType [javadoc |
source]
java.lang.Object
org.apache.struts.chain.AbstractSetContentType
org.apache.struts.chain.servlet.SetContentType
All Implemented Interfaces:
org.apache.commons.chain.Command
Check to see if the content type is set, and if so, set it for this
response.
- author:
Don
- Brown
- version:
$
- Rev: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $
Method from org.apache.struts.chain.servlet.SetContentType Summary: |
---|
setContentType |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.struts.chain.servlet.SetContentType Detail: |
protected void setContentType(Context context,
String contentType) {
ServletWebContext swcontext = (ServletWebContext) context;
HttpServletResponse response = swcontext.getResponse();
response.setContentType(contentType);
}
|