Interface RejectedPathMappingHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface RejectedPathMappingHandler
    A handler that is invoked when a ServerBuilder rejects to bind a Service at a certain PathMapping. For example, the following code will trigger this handler:
    
     ServerBuilder sb = new ServerBuilder();
     sb.service("/hello", serviceA);
     sb.service("/hello", serviceB); // Tried to bind at the same path mapping again.
     sb.build();
     
    See Also:
    ServerBuilder.rejectedPathMappingHandler(RejectedPathMappingHandler)