Package org.eclipse.jetty.client.util
Class StringRequestContent
java.lang.Object
org.eclipse.jetty.client.util.AbstractRequestContent
org.eclipse.jetty.client.util.BytesRequestContent
org.eclipse.jetty.client.util.StringRequestContent
- All Implemented Interfaces:
Request.Content
- Direct Known Subclasses:
FormRequestContent
A Request.Content
for strings.
It is possible to specify, at the constructor, an encoding used to convert the string into bytes, by default UTF-8.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.client.util.AbstractRequestContent
AbstractRequestContent.AbstractSubscription, AbstractRequestContent.Producer
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Request.Content
Request.Content.Consumer, Request.Content.Subscription
-
Constructor Summary
ConstructorDescriptionStringRequestContent
(String content) StringRequestContent
(String contentType, String content) StringRequestContent
(String contentType, String content, Charset encoding) StringRequestContent
(String content, Charset encoding) -
Method Summary
Methods inherited from class org.eclipse.jetty.client.util.BytesRequestContent
getLength, isReproducible, newSubscription
Methods inherited from class org.eclipse.jetty.client.util.AbstractRequestContent
getContentType, subscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.client.api.Request.Content
fail
-
Constructor Details
-
StringRequestContent
-
StringRequestContent
-
StringRequestContent
-
StringRequestContent
-