Package org.refcodes.net
Interface HttpBodyAccessor.HttpBodyProvider<EXC extends java.lang.Exception>
-
- Type Parameters:
EXC
- The exception type which may be thrown upon converting to the desired type.
- All Known Subinterfaces:
HttpClientRequest
,HttpClientRequest.HttpClientRequestBuilder
,HttpServerResponse
- All Known Implementing Classes:
HttpClientRequestImpl
,HttpServerResponseImpl
- Enclosing interface:
- HttpBodyAccessor
public static interface HttpBodyAccessor.HttpBodyProvider<EXC extends java.lang.Exception>
A provider interface provides a "toSomething(?)" method which converts a given instance into something else. TheContentTypeAccessor.ContentTypeProvider
converts an implementing instance's state into aContentType
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
toHttpBody()
Converts an object representing the HTTP body to aString
instance.
-
-
-
Method Detail
-
toHttpBody
java.lang.String toHttpBody() throws EXC extends java.lang.Exception
Converts an object representing the HTTP body to aString
instance. Automatically determines theContentType
from any headers when applicable.
-
-