mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Update to allow _qStepTimeoutMillis to come from formBody
This commit is contained in:
@ -1295,6 +1295,24 @@ public class QJavalinImplementation
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Returns Integer if context has a valid int form parameter by the given name,
|
||||||
|
** Returns null if no param (or empty value).
|
||||||
|
** Throws QValueException for malformed numbers.
|
||||||
|
*******************************************************************************/
|
||||||
|
public static Integer integerFormParam(Context context, String name) throws QValueException
|
||||||
|
{
|
||||||
|
String value = context.formParam(name);
|
||||||
|
if(StringUtils.hasContent(value))
|
||||||
|
{
|
||||||
|
return (ValueUtils.getValueAsInteger(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
return (null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Returns String if context has a valid query parameter by the given name,
|
** Returns String if context has a valid query parameter by the given name,
|
||||||
* Returns null if no param (or empty value).
|
* Returns null if no param (or empty value).
|
||||||
|
@ -737,7 +737,11 @@ public class QJavalinProcessHandler
|
|||||||
Integer timeout = QJavalinImplementation.integerQueryParam(context, "_qStepTimeoutMillis");
|
Integer timeout = QJavalinImplementation.integerQueryParam(context, "_qStepTimeoutMillis");
|
||||||
if(timeout == null)
|
if(timeout == null)
|
||||||
{
|
{
|
||||||
timeout = ASYNC_STEP_TIMEOUT_MILLIS;
|
timeout = QJavalinImplementation.integerFormParam(context, "_qStepTimeoutMillis");
|
||||||
|
if(timeout == null)
|
||||||
|
{
|
||||||
|
timeout = ASYNC_STEP_TIMEOUT_MILLIS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return timeout;
|
return timeout;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user