public class XactionUtil extends Object
Constructor and Description |
---|
XactionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
createOutputFileName(RepositoryFile file,
IOutputHandler outputHandler) |
static HttpOutputHandler |
createOutputHandler(javax.servlet.http.HttpServletResponse response,
OutputStream outputStream) |
static String |
doParameter(RepositoryFile file,
IParameterProvider parameterProvider,
IPentahoSession userSession) |
static String |
execute(String returnContentType,
RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
IPentahoSession userSession,
IMimeTypeListener mimeTypeListener) |
static String |
executeHtml(RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
IPentahoSession userSession,
IMimeTypeListener mimeTypeListener) |
protected static IRuntimeContext |
executeInternal(RepositoryFile file,
IParameterProvider requestParams,
javax.servlet.http.HttpServletRequest httpServletRequest,
IOutputHandler outputHandler,
Map<String,IParameterProvider> parameterProviders,
IPentahoSession userSession,
boolean forcePrompt,
List messages) |
static String |
executeScheduleUi(RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
IPentahoSession userSession,
IMimeTypeListener mimeTypeListener)
This method executes an xaction with forcePrompt=true and outputPreference=PARAMETERS, allowing for the xaction to
render the secure filter appropriately when being executed in the background or while being scheduled.
|
static String |
executeXml(RepositoryFile file,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
IPentahoSession userSession) |
static OutputStream |
getOutputStream(javax.servlet.http.HttpServletResponse response,
boolean doMessages) |
static String |
postExecute(IRuntimeContext runtime,
boolean debugMessages,
boolean doWrapper,
IOutputHandler outputHandler,
Map<String,IParameterProvider> parameterProviders,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
List<?> messages,
boolean deleteGeneratedFiles) |
static void |
setupOutputHandler(HttpOutputHandler outputHandler,
IParameterProvider requestParameters) |
public static void createOutputFileName(RepositoryFile file, IOutputHandler outputHandler)
public static OutputStream getOutputStream(javax.servlet.http.HttpServletResponse response, boolean doMessages) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public static void setupOutputHandler(HttpOutputHandler outputHandler, IParameterProvider requestParameters)
public static HttpOutputHandler createOutputHandler(javax.servlet.http.HttpServletResponse response, OutputStream outputStream)
public static String postExecute(IRuntimeContext runtime, boolean debugMessages, boolean doWrapper, IOutputHandler outputHandler, Map<String,IParameterProvider> parameterProviders, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, List<?> messages, boolean deleteGeneratedFiles) throws Exception
Exception
public static String executeHtml(RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, IPentahoSession userSession, IMimeTypeListener mimeTypeListener) throws Exception
Exception
public static String executeScheduleUi(RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, IPentahoSession userSession, IMimeTypeListener mimeTypeListener) throws Exception
file
- the location of the xactionhttpServletRequest
- the request objecthttpServletResponse
- the response objectuserSession
- the user sessionException
protected static IRuntimeContext executeInternal(RepositoryFile file, IParameterProvider requestParams, javax.servlet.http.HttpServletRequest httpServletRequest, IOutputHandler outputHandler, Map<String,IParameterProvider> parameterProviders, IPentahoSession userSession, boolean forcePrompt, List messages) throws Exception
Exception
public static String executeXml(RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, IPentahoSession userSession) throws Exception
Exception
public static String execute(String returnContentType, RepositoryFile file, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, IPentahoSession userSession, IMimeTypeListener mimeTypeListener) throws Exception
Exception
public static String doParameter(RepositoryFile file, IParameterProvider parameterProvider, IPentahoSession userSession) throws IOException
IOException
Copyright © 2017 Hitachi Vantara. All rights reserved.