org.nuiton.wikitty.publication.ui.action
Class PublicationActionRaw

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
              extended by org.nuiton.wikitty.publication.ui.action.PublicationActionRaw
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.ServletResponseAware, org.apache.struts2.interceptor.SessionAware

public class PublicationActionRaw
extends PublicationBaseAction
implements org.apache.struts2.interceptor.ServletResponseAware

Java class for the raw action that return wikittyPub simply with their Mime Type.

Author:
mfortun
See Also:
Serialized Form

Field Summary
protected  InputStream inputStream
           
protected  String mimeType
           
protected  javax.servlet.http.HttpServletResponse response
           
 
Fields inherited from class org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
ARG_CONTENT_FIELD, ARG_MIMETYPE, ARG_QUERY, ARGS_KEY, CONTEXT_ACTION_KEY, CONTEXT_APPS_KEY, CONTEXT_DATA_KEY, contextApps, contextData, SEARCH_SEPARATOR, SEPARATOR, session
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
PublicationActionRaw()
           
 
Method Summary
 String execute()
           
static PublicationActionRaw getAction()
           
 InputStream getInputStream()
           
 String getMimeType()
           
 void setMimeType(String mimeType)
           
 void setServletResponse(javax.servlet.http.HttpServletResponse arg0)
           
 
Methods inherited from class org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
getArgs, getArgument, getContextApps, getContextArgs, getContextData, getError, getWikittyPublicationProxy, getWikittyPublicationSession, searchCriteria, setContextApps, setContextData, setSession
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_, _
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mimeType

protected String mimeType

response

protected javax.servlet.http.HttpServletResponse response

inputStream

protected InputStream inputStream
Constructor Detail

PublicationActionRaw

public PublicationActionRaw()
Method Detail

getAction

public static PublicationActionRaw getAction()

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport
Throws:
Exception

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType)

setServletResponse

public void setServletResponse(javax.servlet.http.HttpServletResponse arg0)
Specified by:
setServletResponse in interface org.apache.struts2.interceptor.ServletResponseAware

getInputStream

public InputStream getInputStream()


Copyright © 2010-2011 CodeLutin. All Rights Reserved.