Package com.helger.photon.core.longrun
Class LongRunningJobResult
java.lang.Object
com.helger.photon.core.longrun.LongRunningJobResult
This class represents the result of a single long running job execution.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LongRunningJobResult
(ELongRunningJobResultType eType, Object aResult) -
Method Summary
Modifier and TypeMethodDescriptionstatic LongRunningJobResult
static LongRunningJobResult
createFile
(File aResult) static LongRunningJobResult
createJson
(com.helger.json.IJson aResult) static LongRunningJobResult
createLink
(com.helger.commons.url.ISimpleURL aResult) static LongRunningJobResult
createText
(String sResult) static LongRunningJobResult
createXML
(com.helger.html.hc.IHCNode aResult) static LongRunningJobResult
createXML
(com.helger.xml.microdom.IMicroNode aResult) com.helger.json.IJson
com.helger.commons.url.ISimpleURL
final Object
com.helger.xml.microdom.IMicroNode
getType()
toString()
-
Constructor Details
-
LongRunningJobResult
-
-
Method Details
-
getType
- Returns:
- The type as specified in the constructor. Never
null
.
-
getResultObject
-
getResultFile
-
getResultXML
-
getResultText
-
getResultLink
-
getResultJson
-
getAsString
-
toString
-
createFile
-
createXML
@Nonnull public static LongRunningJobResult createXML(@Nonnull com.helger.xml.microdom.IMicroNode aResult) -
createXML
-
createText
-
createExceptionText
-
createLink
@Nonnull public static LongRunningJobResult createLink(@Nonnull com.helger.commons.url.ISimpleURL aResult) -
createJson
-