Package net.thevpc.naru.ext.models.util
Class NaruModelUtils
java.lang.Object
net.thevpc.naru.ext.models.util.NaruModelUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringabbreviate(String s, int max) static voidcheckValidRoutineName(String text) static net.thevpc.nuts.text.NMsgformatDirective(String name) static booleanstatic booleanisValidRoutineName(String text) static voidlogAudit(NaruTask task, NaruSession session, String provider, String model, net.thevpc.nuts.net.NHttpRequest request, Object requestBody, net.thevpc.nuts.net.NHttpResponse response, Object responseBody, Throwable error, int attempt, net.thevpc.nuts.time.NDuration duration, Instant requestTime) static voidlogWebRequest(net.thevpc.nuts.net.NHttpRequest request, net.thevpc.nuts.text.NMsg text, Object input) static voidlogWebResponse(net.thevpc.nuts.net.NHttpRequest request, net.thevpc.nuts.text.NMsg text, Object input, Object output, net.thevpc.nuts.mon.NChronometer chronometer) static StringmaskHeaderValue(String name, String value) parseEnv(net.thevpc.nuts.elem.NElement aa) static List<NaruModelUtils.LineRange>parseRanges(net.thevpc.nuts.cmdline.NCmdLine cmdLine) static net.thevpc.nuts.time.NDurationparseRetryAfter(net.thevpc.nuts.net.NHttpResponse response) resolveIndexes(NaruModelUtils.LineRange[] ranges, int count) static List<net.thevpc.nuts.io.NPath>resolveTaskAuditPaths(NaruTask task, NaruSession session)
-
Constructor Details
-
NaruModelUtils
public NaruModelUtils()
-
-
Method Details
-
formatDirective
-
checkValidRoutineName
-
isValidRoutineName
-
parseEnv
-
parseEnv
-
abbreviate
-
logWebRequest
public static void logWebRequest(net.thevpc.nuts.net.NHttpRequest request, net.thevpc.nuts.text.NMsg text, Object input) -
logWebResponse
-
parseRetryAfter
public static net.thevpc.nuts.time.NDuration parseRetryAfter(net.thevpc.nuts.net.NHttpResponse response) -
resolveTaskAuditPaths
public static List<net.thevpc.nuts.io.NPath> resolveTaskAuditPaths(NaruTask task, NaruSession session) -
maskHeaderValue
-
logAudit
public static void logAudit(NaruTask task, NaruSession session, String provider, String model, net.thevpc.nuts.net.NHttpRequest request, Object requestBody, net.thevpc.nuts.net.NHttpResponse response, Object responseBody, Throwable error, int attempt, net.thevpc.nuts.time.NDuration duration, Instant requestTime) -
isPath
-
resolveIndexes
-
parseRanges
-