Class WebdavFixValve

  • All Implemented Interfaces:
    Contained, Lifecycle, Valve, GlassFishValve

    public class WebdavFixValve
    extends ValveBase
    Valve that attempts to force MS WebDAV clients connecting on port 80 to use a WebDAV client that actually works. Other workarounds that might help include:
    • Specifing the port, even if it is port 80, when trying to connect.
    • Canceling the first authentication dialog box and then trying to reconnect.
    To use this valve add the following <Valve className="org.apache.catalina.valves.WebdavFixValve" /> to your Engine, Host or Context as required. Normally, this valve would be used at the Context level.
    Version:
    $Revision: 420067 $, $Date: 2006-07-08 09:16:58 +0200 (sub, 08 srp 2006) $
    • Constructor Detail

      • WebdavFixValve

        public WebdavFixValve()
    • Method Detail

      • invoke

        public int invoke​(Request request,
                          Response response)
                   throws IOException,
                          jakarta.servlet.ServletException
        Check for the broken MS WebDAV client and if detected issue a re-direct that hopefully will cause the non-broken client to be used.
        Specified by:
        invoke in interface GlassFishValve
        Specified by:
        invoke in class ValveBase
        Parameters:
        request - The servlet request to be processed
        response - The servlet response to be created
        Returns:
        INVOKE_NEXT or END_PIPELINE
        Throws:
        IOException - if an input/output error occurs
        jakarta.servlet.ServletException - if a servlet error occurs