public abstract class AbstractSetContentType extends ActionCommandBase
Check to see if the content type is set, and if so, set it for this response.
| Constructor and Description |
|---|
AbstractSetContentType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute(ActionContext actionCtx)
Check to see if the content type is set, and if so, set it for this
response.
|
protected abstract void |
setContentType(ActionContext context,
java.lang.String contentType)
Request no cache flags are set.
|
executepublic boolean execute(ActionContext actionCtx) throws java.lang.Exception
Check to see if the content type is set, and if so, set it for this response.
execute in interface ActionCommandexecute in class ActionCommandBaseactionCtx - The Context for the current requestfalse so that processing continuesjava.lang.Exception - if thrown by the Action classprotected abstract void setContentType(ActionContext context, java.lang.String contentType)
Request no cache flags are set.
context - The Context for this requestcontentType - The content type for the responseCopyright © 2000–2024 Apache Software Foundation. All rights reserved.