-
- All Implemented Interfaces:
-
kotlin.Function,kotlin.Function1
public final class HttpServerPredicate implements Function1<Context<HttpServerCall>, Boolean>
-
-
Field Summary
Fields Modifier and Type Field Description private final Function1<Context<HttpServerCall>, Boolean>predicateprivate final Set<HttpMethod>methodsprivate final PathPatternpathPatternprivate final KClass<out Exception>exceptionprivate final HttpStatusstatus
-
Constructor Summary
Constructors Constructor Description HttpServerPredicate(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Boolean prefix)HttpServerPredicate(Set<HttpMethod> methods, PathPattern pathPattern, KClass<out Exception> exception, HttpStatus status)
-
Method Summary
Modifier and Type Method Description final Function1<Context<HttpServerCall>, Boolean>getPredicate()final Set<HttpMethod>getMethods()final PathPatterngetPathPattern()final KClass<out Exception>getException()final HttpStatusgetStatus()Booleaninvoke(Context<HttpServerCall> context)final HttpServerPredicateclearMethods()final HttpServerPredicateaddPrefix(String prefix)final Stringdescribe()-
-
Constructor Detail
-
HttpServerPredicate
HttpServerPredicate(Set<HttpMethod> methods, String pattern, KClass<out Exception> exception, HttpStatus status, Boolean prefix)
-
HttpServerPredicate
HttpServerPredicate(Set<HttpMethod> methods, PathPattern pathPattern, KClass<out Exception> exception, HttpStatus status)
-
-
Method Detail
-
getPredicate
final Function1<Context<HttpServerCall>, Boolean> getPredicate()
-
getMethods
final Set<HttpMethod> getMethods()
-
getPathPattern
final PathPattern getPathPattern()
-
getException
final KClass<out Exception> getException()
-
getStatus
final HttpStatus getStatus()
-
invoke
Boolean invoke(Context<HttpServerCall> context)
-
clearMethods
final HttpServerPredicate clearMethods()
-
addPrefix
final HttpServerPredicate addPrefix(String prefix)
-
describe
final String describe()
-
-
-
-