diff --git a/coap-core/src/main/java/com/mbed/coap/server/CoapServerBuilder.java b/coap-core/src/main/java/com/mbed/coap/server/CoapServerBuilder.java index 08695fed..38134387 100644 --- a/coap-core/src/main/java/com/mbed/coap/server/CoapServerBuilder.java +++ b/coap-core/src/main/java/com/mbed/coap/server/CoapServerBuilder.java @@ -80,7 +80,7 @@ public final class CoapServerBuilder { private int maxQueueSize = 100; private Filter.SimpleFilter outboundFilter = Filter.identity(); private Filter.SimpleFilter routeFilter = Filter.identity(); - private Filter inboundRequestFilter = Filter.identity(); + private Filter.SimpleFilter inboundRequestFilter = Filter.identity(); private NotificationsReceiver notificationsReceiver = NotificationsReceiver.REJECT_ALL; private ObservationsStore observationStore = ObservationsStore.ALWAYS_EMPTY; private RequestTagSupplier requestTagSupplier = RequestTagSupplier.createSequential(); @@ -120,7 +120,7 @@ public CoapServerBuilder routeFilter(Filter.SimpleFilter inboundRequestFilter) { + public CoapServerBuilder inboundRequestFilter(Filter.SimpleFilter inboundRequestFilter) { this.inboundRequestFilter = requireNonNull(inboundRequestFilter); return this; }