public abstract class MarshallingDirectives extends HostDirectives
Constructor and Description |
---|
MarshallingDirectives() |
Modifier and Type | Method and Description |
---|---|
<T> Route |
completeWith(Marshaller<T,? extends HttpResponse> marshaller,
java.util.function.Consumer<java.util.function.Consumer<T>> inner)
Uses the marshaller for the given type to produce a completion function that is passed to its inner function.
|
<T> Route |
entity(Unmarshaller<? super HttpEntity,T> unmarshaller,
java.util.function.Function<T,Route> inner)
Unmarshalls the requests entity using the given unmarshaller, and passes the result to [inner].
|
<T,R> Route |
handleWith(Unmarshaller<? super HttpEntity,T> unmarshaller,
Marshaller<R,? extends HttpResponse> marshaller,
java.util.function.Function<T,R> inner)
Completes the request using the given function.
|
<T> Route |
request(Unmarshaller<? super HttpRequest,T> unmarshaller,
java.util.function.Function<T,Route> inner)
Unmarshalls the request using the given unmarshaller, and passes the result to [inner].
|
extractHost, host, host, host, host
attribute, optionalAttribute
checkSameOrigin, headerValue, headerValueByName, headerValueByType, headerValuePF, optionalHeaderValue, optionalHeaderValueByName, optionalHeaderValueByType, optionalHeaderValuePF
completeOrRecoverWith, onComplete, onComplete, onCompleteWithBreaker, onSuccess, onSuccess
formField, formField, formFieldList, formFieldList, formFieldList, formFieldMap, formFieldMultiMap, formFieldOptional, formFieldOptional
fileUpload, fileUploadAll, storeUploadedFile, storeUploadedFiles
defaultContentTypeResolver, defaultDirectoryRenderer, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectories, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromBrowseableDirectory, getFromDirectory, getFromDirectory, getFromFile, getFromFile, getFromFile, getFromFile, getFromFile, getFromResource, getFromResource, getFromResource, getFromResource, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, getFromResourceDirectory, listDirectoryContents, listDirectoryContents, listDirectoryContents, listDirectoryContents
handleExceptions, handleRejections
logRequest, logRequest, logRequest, logRequestResult, logRequestResultOptional, logResult, logResult, logResult
cookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, deleteCookie, optionalCookie, setCookie, setCookie
decodeRequest, decodeRequestWith, decodeRequestWith, encodeResponse, encodeResponseWith, requestEncodedWith, responseEncodingAccepted, withPrecompressedMediaTypeSupport
conditional, conditional, conditional, conditional
cancelRejection, cancelRejections, cancelRejections, extract, extractActorSystem, extractDataBytes, extractEntity, extractExecutionContext, extractLog, extractMatchedPath, extractMaterializer, extractParserSettings, extractRequest, extractRequestContext, extractRequestEntity, extractSettings, extractStrictEntity, extractStrictEntity, extractUnmatchedPath, extractUri, mapInnerRoute, mapRejections, mapRequest, mapRequestContext, mapResponse, mapResponseEntity, mapResponseHeaders, mapRouteResult, mapRouteResultFuture, mapRouteResultPF, mapRouteResultWith, mapRouteResultWithPF, mapSettings, mapUnmatchedPath, pass, provide, recoverRejections, recoverRejectionsWith, toStrictEntity, toStrictEntity, withExecutionContext, withLog, withMaterializer, withSettings
public <T> Route completeWith(Marshaller<T,? extends HttpResponse> marshaller, java.util.function.Consumer<java.util.function.Consumer<T>> inner)
marshaller
- (undocumented)inner
- (undocumented)public <T> Route entity(Unmarshaller<? super HttpEntity,T> unmarshaller, java.util.function.Function<T,Route> inner)
pekko.http.javadsl.server.Rejection
produced by the unmarshaller.unmarshaller
- (undocumented)inner
- (undocumented)public <T,R> Route handleWith(Unmarshaller<? super HttpEntity,T> unmarshaller, Marshaller<R,? extends HttpResponse> marshaller, java.util.function.Function<T,R> inner)
unmarshaller
- (undocumented)marshaller
- (undocumented)inner
- (undocumented)public <T> Route request(Unmarshaller<? super HttpRequest,T> unmarshaller, java.util.function.Function<T,Route> inner)
pekko.http.javadsl.server.Rejection
produced by the unmarshaller.unmarshaller
- (undocumented)inner
- (undocumented)