-
- All Superinterfaces:
org.refcodes.mixin.Dumpable
,HeaderFieldsAccessor<ResponseHeaderFields>
,HttpBodyAccessor.HttpBodyProvider<BadResponseException>
,HttpResponse
,HttpStatusCodeAccessor
,HttpStatusCodeAccessor.HttpStatusCodeBuilder<HttpServerResponse>
,HttpStatusCodeAccessor.HttpStatusCodeMutator
,HttpStatusCodeAccessor.HttpStatusCodeProperty
- All Known Implementing Classes:
HttpServerResponseImpl
public interface HttpServerResponse extends HttpResponse, HttpStatusCodeAccessor.HttpStatusCodeProperty, HttpStatusCodeAccessor.HttpStatusCodeBuilder<HttpServerResponse>, HttpBodyAccessor.HttpBodyProvider<BadResponseException>, org.refcodes.mixin.Dumpable
Defines aHttpServerResponse
as produced by the server.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.web.HeaderFieldsAccessor
HeaderFieldsAccessor.HeaderFieldsBuilder<T extends HeaderFields<?,?>,B extends HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>, HeaderFieldsAccessor.HeaderFieldsMutator<T extends HeaderFields<?,?>>, HeaderFieldsAccessor.HeaderFieldsProperty<T extends HeaderFields<?,?>>
-
Nested classes/interfaces inherited from interface org.refcodes.web.HttpStatusCodeAccessor
HttpStatusCodeAccessor.HttpStatusCodeBuilder<B extends HttpStatusCodeAccessor.HttpStatusCodeBuilder<B>>, HttpStatusCodeAccessor.HttpStatusCodeMutator, HttpStatusCodeAccessor.HttpStatusCodeProperty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <RES> RES
getResponse()
Retrieves the response from the response property.<RES> void
setResponse(RES aResponse)
Sets the response for the response property.default HttpServerResponse
withHttpStatusCode(HttpStatusCode aStatusCode)
Sets the HTTP Status-Code for the HTTP Status-Code property.default <RES> HttpServerResponse
withResponse(RES aResponse)
Sets the response for the response property.-
Methods inherited from interface org.refcodes.web.HeaderFieldsAccessor
getHeaderFields
-
Methods inherited from interface org.refcodes.web.HttpBodyAccessor.HttpBodyProvider
toHttpBody
-
Methods inherited from interface org.refcodes.web.HttpStatusCodeAccessor
getHttpStatusCode
-
Methods inherited from interface org.refcodes.web.HttpStatusCodeAccessor.HttpStatusCodeMutator
setHttpStatusCode
-
Methods inherited from interface org.refcodes.web.HttpStatusCodeAccessor.HttpStatusCodeProperty
letHttpStatusCode
-
-
-
-
Method Detail
-
withHttpStatusCode
default HttpServerResponse withHttpStatusCode(HttpStatusCode aStatusCode)
Sets the HTTP Status-Code for the HTTP Status-Code property.- Specified by:
withHttpStatusCode
in interfaceHttpStatusCodeAccessor.HttpStatusCodeBuilder<HttpServerResponse>
- Parameters:
aStatusCode
- The HTTP Status-Code to be stored by the HTTP HTTP Status-Code property.- Returns:
- The builder for applying multiple build operations.
-
getResponse
<RES> RES getResponse()
Retrieves the response from the response property.- Type Parameters:
RES
- the generic type- Returns:
- The response stored by the response property.
-
setResponse
<RES> void setResponse(RES aResponse)
Sets the response for the response property. TheHttpServerResponseImpl.setResponse(Object)
supports theHttpBodyMap
to marshal anHttpBodyMap
into an HTTP Request-Body.- Type Parameters:
RES
- the generic type- Parameters:
aResponse
- The response to be stored by the response property.
-
withResponse
default <RES> HttpServerResponse withResponse(RES aResponse)
Sets the response for the response property.- Type Parameters:
RES
- the generic type- Parameters:
aResponse
- The response to be stored by the response property.- Returns:
- The builder for applying multiple build operations.
-
-