Package util

Class Helper

java.lang.Object
util.Helper

public class Helper extends Object
Author:
Krish Pillai
  • Constructor Details

    • Helper

      public Helper()
  • Method Details

    • checkCallStackForMethod

      public static boolean checkCallStackForMethod(String method)
      Utility function to check if the caller is authorized. Checks to see if the specified call-chain is part of the stack-trace. Returns a true if the argument shows up in the stack trace of the current thread.
      Parameters:
      method - The method in question
      Returns:
      true if authorized
    • getCurrentMethodName

      public static String getCurrentMethodName()
      Find the name of the method that invoked this method.
      Returns:
      the name of the caller