Class NaruModelUtils

java.lang.Object
net.thevpc.naru.ext.models.util.NaruModelUtils

public class NaruModelUtils extends Object
  • Constructor Details

    • NaruModelUtils

      public NaruModelUtils()
  • Method Details

    • formatDirective

      public static net.thevpc.nuts.text.NMsg formatDirective(String name)
    • checkValidRoutineName

      public static void checkValidRoutineName(String text)
    • isValidRoutineName

      public static boolean isValidRoutineName(String text)
    • parseEnv

      public static Map<String,net.thevpc.nuts.elem.NElement> parseEnv(String msg)
    • parseEnv

      public static Map<String,net.thevpc.nuts.elem.NElement> parseEnv(net.thevpc.nuts.elem.NElement aa)
    • abbreviate

      public static String abbreviate(String s, int max)
    • logWebRequest

      public static void logWebRequest(net.thevpc.nuts.net.NHttpRequest request, net.thevpc.nuts.text.NMsg text, Object input)
    • logWebResponse

      public static void logWebResponse(net.thevpc.nuts.net.NHttpRequest request, net.thevpc.nuts.text.NMsg text, Object input, Object output, net.thevpc.nuts.mon.NChronometer chronometer)
    • 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

      public static String maskHeaderValue(String name, String value)
    • 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

      public static boolean isPath(String command)
    • resolveIndexes

      public static Set<Integer> resolveIndexes(NaruModelUtils.LineRange[] ranges, int count)
    • parseRanges

      public static List<NaruModelUtils.LineRange> parseRanges(net.thevpc.nuts.cmdline.NCmdLine cmdLine)