1package dev.rafex.ether.http.jetty12;
29import java.util.Objects;
32import dev.rafex.ether.http.core.HttpExchange;
33import dev.rafex.ether.http.core.HttpResource;
34import dev.rafex.ether.http.jetty12.handler.ResourceHandler;
35import dev.rafex.ether.json.JsonCodec;
44 this.basePath = Objects.requireNonNull(
basePath,
"basePath");
45 this.delegate = Objects.requireNonNull(delegate,
"delegate");
54 public boolean get(
final HttpExchange x)
throws Exception {
55 return delegate.
get(x);
59 public boolean post(
final HttpExchange x)
throws Exception {
60 return delegate.
post(x);
64 public boolean put(
final HttpExchange x)
throws Exception {
65 return delegate.
put(x);
69 public boolean delete(
final HttpExchange x)
throws Exception {
74 public boolean patch(
final HttpExchange x)
throws Exception {
75 return delegate.
patch(x);
79 public boolean options(
final HttpExchange x)
throws Exception {
abstract String basePath()
default Set< String > supportedMethods()
default boolean patch(final HttpExchange x)
default boolean delete(final HttpExchange x)
default boolean put(final HttpExchange x)
default boolean get(final HttpExchange x)
default boolean options(final HttpExchange x)
default boolean post(final HttpExchange x)