public class TridionStepUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
createPackageFileName(ProcessingContext context)
Create package file name for a Execution Context.
|
static Throwable |
findOriginalCause(Throwable exception)
Finds original cause of
ProcessingException . |
static File |
getPackageUnzipLocation(ProcessingContext context,
StepDataProvider provider)
Fetches and returns package Unzip location for the specified context.
|
static String |
getRawContent(InputStream inputStream)
Gets the contents of textual files (html, etc.) from a File.
|
static boolean |
isInWait(ProcessingContext context,
StepDataProvider provider)
Check if the Package related to the Execution Context is in Wait.
|
public static boolean isInWait(ProcessingContext context, StepDataProvider provider) throws ProcessingException
context
- Execution Context.provider
- Step Data Provider.ProcessingException
- If there is error checking Package state.public static File getPackageUnzipLocation(ProcessingContext context, StepDataProvider provider) throws ProcessingException
context
- Execution Context.provider
- Step Data Provider.ProcessingException
- If there is error fetching Package Unzip location.public static String createPackageFileName(ProcessingContext context) throws ProcessingException
context
- Execution Context.ProcessingException
- If there is any error creating package file name.public static Throwable findOriginalCause(Throwable exception)
ProcessingException
. If passed exception is null or have no cause or is not
an instance of ProcessingException
, parameter is returned.exception
- The throwable.public static String getRawContent(InputStream inputStream)
inputStream
- the inputstream from a file in the transport package.ProcessingException
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries