Class ImportSupport

    • Field Detail

      • DEFAULT_ENCODING

        public static final java.lang.String DEFAULT_ENCODING
        Default character encoding for response.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ImportSupport

        public ImportSupport()
    • Method Detail

      • doCatch

        public void doCatch​(java.lang.Throwable t)
                     throws java.lang.Throwable
        Description copied from interface: TryCatchFinally
        Invoked if a Throwable occurs while evaluating the BODY inside a tag or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody().

        This method is not invoked if the Throwable occurs during one of the setter methods.

        This method may throw an exception (the same or a new one) that will be propagated further up the nest chain. If an exception is thrown, doFinally() will be invoked.

        This method is intended to be used to respond to an exceptional condition.

        Specified by:
        doCatch in interface TryCatchFinally
        Parameters:
        t - The throwable exception navigating through this tag.
        Throws:
        java.lang.Throwable - if the exception is to be rethrown further up the nest chain.
      • doFinally

        public void doFinally()
        Description copied from interface: TryCatchFinally
        Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. This method is invoked even if an exception has occurred in the BODY of the tag, or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody().

        This method is not invoked if the Throwable occurs during one of the setter methods.

        This method should not throw an Exception.

        This method is intended to maintain per-invocation data integrity and resource management actions.

        Specified by:
        doFinally in interface TryCatchFinally
      • setVar

        public void setVar​(java.lang.String var)
      • setVarReader

        public void setVarReader​(java.lang.String varReader)
      • setScope

        public void setScope​(java.lang.String scope)
      • addParameter

        public void addParameter​(java.lang.String name,
                                 java.lang.String value)
        Description copied from interface: ParamParent
        Adds a parameter to this tag's URL. The intent is that the <param> subtag will call this to register URL parameters. Assumes that 'name' and 'value' are appropriately encoded and do not contain any meaningful metacharacters; in order words, escaping is the responsibility of the caller.
        Specified by:
        addParameter in interface ParamParent
        See Also:
        ParamSupport
      • stripSession

        public static java.lang.String stripSession​(java.lang.String url)
        Strips a servlet session ID from url. The session ID is encoded as a URL "path parameter" beginning with "jsessionid=". We thus remove anything we find between ";jsessionid=" (inclusive) and either EOS or a subsequent ';' (exclusive).