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,
String contentType)
Request no cache flags are set.
|
execute
public boolean execute(ActionContext actionCtx) throws Exception
Check to see if the content type is set, and if so, set it for this response.
execute
in interface ActionCommand
execute
in class ActionCommandBase
actionCtx
- The Context
for the current requestfalse
so that processing continuesException
- if thrown by the Action classprotected abstract void setContentType(ActionContext context, String contentType)
Request no cache flags are set.
context
- The Context
for this requestcontentType
- The content type for the responseCopyright © 2000–2017 Apache Software Foundation. All rights reserved.