Class FullPathMatchingPathHandler

java.lang.Object
io.undertow.server.handlers.PathHandler
org.spincast.plugins.undertow.FullPathMatchingPathHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class FullPathMatchingPathHandler extends io.undertow.server.handlers.PathHandler
Custom PathHandler that always match on the full path, not the remaining path, if previous PathHandler matched.

Warning: Those FullPathMatchingPathHandlers shouldn't be use in association with regular PathHandlers since they override the "relative path" of the exchange, that is used by regular PathHandlers. You should only use FullPathMatchingPathHandlers or only regular PathHandlers.

  • Constructor Summary

    Constructors
    Constructor
    Description
    FullPathMatchingPathHandler(io.undertow.server.HttpHandler defaultHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleRequest(io.undertow.server.HttpServerExchange exchange)
     

    Methods inherited from class io.undertow.server.handlers.PathHandler

    addExactPath, addPath, addPrefixPath, clearPaths, removeExactPath, removePath, removePrefixPath, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FullPathMatchingPathHandler

      public FullPathMatchingPathHandler(io.undertow.server.HttpHandler defaultHandler)
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Overrides:
      handleRequest in class io.undertow.server.handlers.PathHandler
      Throws:
      Exception