Class Capture<T>
- java.lang.Object
-
- ch.raffael.meldioc.library.http.server.undertow.routing.Capture<T>
-
- Direct Known Subclasses:
Capture.Attachment,QueryCaptureBuilder.Single,QueryCaptureBuilder.Single.Collection
public abstract class Capture<T> extends java.lang.ObjectA capture of some value from the request (path segment, query parameter).The name if usually irrelevant and it's no problem to reuse the same name multiple times. It's just to be able to insert something meaningful in error messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCapture.Attachment<T>static interfaceCapture.BiMapper<T1,T2,R>static interfaceCapture.Mapper<T,R>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Capture<R>map(Capture.Mapper<? super T,? extends R> mapper)<T2,R>
Capture<R>merge(Capture<? extends T2> that, Capture.BiMapper<? super T,? super T2,? extends R> mapper)<T2,R>
Capture<R>merge(java.lang.String name, Capture<? extends T2> that, Capture.BiMapper<? super T,? super T2,? extends R> mapper)java.lang.Stringname()
-
-
-
Method Detail
-
name
public java.lang.String name()
-
map
public <R> Capture<R> map(Capture.Mapper<? super T,? extends R> mapper)
-
merge
public <T2,R> Capture<R> merge(Capture<? extends T2> that, Capture.BiMapper<? super T,? super T2,? extends R> mapper)
-
merge
public <T2,R> Capture<R> merge(java.lang.String name, Capture<? extends T2> that, Capture.BiMapper<? super T,? super T2,? extends R> mapper)
-
-