Class GSPLib


  • public class GSPLib
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      GSPLib()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getOneOnly​(javax.servlet.http.HttpServletRequest request, java.lang.String name)
      Get one value where there may be several HTTP header values.
      static boolean hasExactlyOneValue​(HttpAction action, java.lang.String name)
      Check whether there is exactly one HTTP header value
      static boolean hasGSPParams​(HttpAction action)
      Test whether the operation has either of the GSP parameters.
      static boolean hasGSPParamsStrict​(HttpAction action)
      Test whether the operation has exactly one GSP parameter and no other parameters.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GSPLib

        public GSPLib()
    • Method Detail

      • hasGSPParams

        public static boolean hasGSPParams​(HttpAction action)
        Test whether the operation has either of the GSP parameters.
      • hasGSPParamsStrict

        public static boolean hasGSPParamsStrict​(HttpAction action)
        Test whether the operation has exactly one GSP parameter and no other parameters.
      • hasExactlyOneValue

        public static boolean hasExactlyOneValue​(HttpAction action,
                                                 java.lang.String name)
        Check whether there is exactly one HTTP header value
      • getOneOnly

        public static java.lang.String getOneOnly​(javax.servlet.http.HttpServletRequest request,
                                                  java.lang.String name)
        Get one value where there may be several HTTP header values. Multiple values causes an exception. No value returns null.