Class RemoteHostHelper


  • public final class RemoteHostHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void handleInvalidAccess​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String clientAddr)  
      static boolean hasMatch​(java.lang.String clientAddr, java.util.regex.Pattern[] patterns)  
      static java.util.regex.Pattern[] parseParam​(java.lang.String param, boolean isRegex)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • hasMatch

        public static boolean hasMatch​(java.lang.String clientAddr,
                                       java.util.regex.Pattern[] patterns)
      • handleInvalidAccess

        public static void handleInvalidAccess​(javax.servlet.ServletRequest request,
                                               javax.servlet.ServletResponse response,
                                               java.lang.String clientAddr)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • parseParam

        public static java.util.regex.Pattern[] parseParam​(java.lang.String param,
                                                           boolean isRegex)