Class PollTimeoutHeader

  • All Implemented Interfaces:
    DavConstants, Header

    public class PollTimeoutHeader
    extends TimeoutHeader
    PollTimeoutHeader implements a timeout header for subscription polling.
    • Constructor Detail

      • PollTimeoutHeader

        public PollTimeoutHeader​(long timeout)
    • Method Detail

      • parseHeader

        public static PollTimeoutHeader parseHeader​(javax.servlet.http.HttpServletRequest request,
                                                    long defaultValue)
        Parses the request timeout header and converts it into a new PollTimeoutHeader object.
        The default value is used as fallback if the String is not parseable.
        Parameters:
        request -
        defaultValue -
        Returns:
        a new PollTimeoutHeader object.