Package cronapi.util
Class Operations
java.lang.Object
cronapi.util.Operations
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic booleanstatic booleanstatic booleanstatic Levelstatic ConcurrentHashMap<String, Logger> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic final VarcallBlockly(Var classNameWithMethod, boolean checkSecurity, String restMethod, Var... params) static final VarcallBlockly(Var classNameWithMethod, Var... params) static final voidcallBlocklyNoReturn(Var classNameWithMethod, Var... params) static final voidcallClientFunction(Var function, Var... params) static final Varstatic final VarcompressToZip(Var value) static VarcreateDownloadLink(Var file) static final VarcreateException(Var msg) static final Varstatic final VardecodeZipFromByte(Var value) static final Varstatic Varstatic final Varstatic final Varstatic final VarencryptPassword(Var password) static final voidexecuteAsync(Runnable cmd) static StringfirstToUpper(String text) static final Varstatic Varstatic Varstatic final VargetContentFromURL(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var returnType, Var postData) static Varstatic final Varstatic final VargetExceptionMessage(Var exception) static final VargetFormDataObject(Var value, Var contentType, Var filename) static final VargetFromRequest(Var fieldName) static final VargetFromThread(Var fieldName) static final VargetHeadersFromExternalURL(Var method, Var contentType, Var address, Var params, Var cookieContainer) static VargetIp()static VargetItemFromHttpResponse(Var httpResponseVar, Var returnType) static final Varstatic final Varstatic VargetSystemParameter(Var key) static Varstatic final Varstatic VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData) static VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path) static VargetURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path, Var returnType) static final VargetValueFromSession(Var fieldName) static voidstatic final VarmatchesencryptPassword(Var password, Var encrypted) static final Varstatic final voidreadBytesFromStream(Var input, Var size, Callback callback) static voidreadLinesFromStream(Var input, Callback callback) static final voidstatic StringreduceVariable(String var, boolean notClassName) static Stringstatic final voidscheduleExecution(Runnable cmd, Var initialTime, Var updateTime, Var unit) static VarDeprecated.static VarDeprecated.static voidsetCookieNoReturn(Var key, Var value, Var measurementUnit, Var expiration) static voidsetCookieNoReturn(Var key, Var value, Var measurementUnit, Var expiration, Var httpOnly, Var secure) static final voidsetInRequest(Var fieldName, Var fieldValue) static final voidsetInSession(Var fieldName, Var fieldValue) static final voidsetInThread(Var fieldName, Var fieldValue) static final voidstatic final VarshellExecute(Var cmdline, Var waitFor) static final voidstatic final voidthrowException(Var exception) static StringtranslateAcentos(String aValue) static final void
-
Field Details
-
IS_DEBUG
public static boolean IS_DEBUG -
IS_WINDOWS
public static boolean IS_WINDOWS -
IS_LINUX
public static boolean IS_LINUX -
LOGGERS
-
LOG_LEVEL
-
LOG_DEFINED
public static boolean LOG_DEFINED
-
-
Constructor Details
-
Operations
public Operations()
-
-
Method Details
-
setReturn
- Throws:
Exception
-
getCurrentUserName
- Throws:
Exception
-
shellExecute
- Throws:
Exception
-
random
- Throws:
Exception
-
compressToZip
- Throws:
Exception
-
decodeZipFromByte
- Throws:
Exception
-
sleep
- Throws:
Exception
-
throwException
- Throws:
Exception
-
createException
- Throws:
Exception
-
getExceptionMessage
- Throws:
Exception
-
callBlocklyNoReturn
public static final void callBlocklyNoReturn(Var classNameWithMethod, Var... params) throws Exception - Throws:
Exception
-
callClientFunction
- Throws:
Exception
-
callBlockly
- Throws:
Exception
-
safeNameForMethodBlockly
-
callBlockly
public static final Var callBlockly(Var classNameWithMethod, boolean checkSecurity, String restMethod, Var... params) throws Exception - Throws:
Exception
-
encryptPassword
- Throws:
Exception
-
encodeMD5
- Throws:
Exception
-
matchesencryptPassword
- Throws:
Exception
-
getHeadersFromExternalURL
public static final Var getHeadersFromExternalURL(Var method, Var contentType, Var address, Var params, Var cookieContainer) throws Exception - Throws:
Exception
-
getURLFromOthers
public static final Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer) throws Exception - Throws:
Exception
-
getURLFromOthers
public static Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path, Var returnType) throws Exception - Throws:
Exception
-
getItemFromHttpResponse
- Throws:
Exception
-
getURLFromOthers
public static Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData) throws Exception - Throws:
Exception
-
getURLFromOthers
public static Var getURLFromOthers(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var postData, Var path) throws Exception - Throws:
Exception
-
getContentFromURL
public static final Var getContentFromURL(Var method, Var contentType, Var address, Var params, Var cookieContainer, Var returnType, Var postData) throws Exception - Throws:
Exception
-
getFormDataObject
public static final Var getFormDataObject(Var value, Var contentType, Var filename) throws Exception - Throws:
Exception
-
getValueFromSession
-
getRequestedMethod
- Throws:
Exception
-
getRequestedHeaders
- Throws:
Exception
-
setInSession
- Throws:
Exception
-
readLinesFromStream
- Throws:
Exception
-
readBytesFromStream
public static final void readBytesFromStream(Var input, Var size, Callback callback) throws Exception - Throws:
Exception
-
generateUUID
-
executeAsync
- Throws:
Exception
-
scheduleExecution
public static final void scheduleExecution(Runnable cmd, Var initialTime, Var updateTime, Var unit) throws Exception - Throws:
Exception
-
upload
public static final void upload(Var description, Var filter, Var maxSize, Var multiple, Callback callback) throws Exception - Throws:
Exception
-
translateAcentos
-
reduceVariable
-
firstToUpper
-
redirect
- Throws:
Exception
-
createDownloadLink
-
getSystemParameter
-
getSystemProfile
-
log
-
audit
- Throws:
Exception
-
getApplicationId
-
encrypt
- Throws:
Exception
-
decrypt
- Throws:
Exception
-
getFromThread
- Throws:
Exception
-
setInThread
- Throws:
Exception
-
getFromRequest
- Throws:
Exception
-
setInRequest
- Throws:
Exception
-
setCookieNoReturn
public static void setCookieNoReturn(Var key, Var value, Var measurementUnit, Var expiration) throws Exception - Throws:
Exception
-
setCookieNoReturn
public static void setCookieNoReturn(Var key, Var value, Var measurementUnit, Var expiration, Var httpOnly, Var secure) throws Exception - Throws:
Exception
-
setCookie
@Deprecated public static Var setCookie(Var key, Var value, Var measurementUnit, Var expiration) throws Exception Deprecated.- Throws:
Exception
-
setCookie
@Deprecated public static Var setCookie(Var key, Var value, Var measurementUnit, Var expiration, Var httpOnly, Var secure) throws Exception Deprecated.- Throws:
Exception
-
getCookie
- Throws:
Exception
-
getBaseUrl
- Throws:
Exception
-
callSOAP
public static final Var callSOAP(Var urlVar, Var soapAction, Var headers, Var content) throws Exception - Throws:
Exception
-
getIp
- Throws:
Exception
-
encodeUrl
- Throws:
Exception
-
decodeUrl
- Throws:
Exception
-