public class RequestBody extends Object
Constructor and Description |
---|
RequestBody() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertySet(NamedPropertySet propertySet)
Add a property set.
|
void |
addRequestInfoProperty(String key,
String val)
Add a request info property.
|
String |
getBody()
Obtain the request body.
|
Set<NamedPropertySet> |
getNamedPropertySets()
Obtain all property sets or an empty set if no properties were specified in the body.
|
String |
getPartialResponseFields()
Obtain the partial response fields that were specified in the body.
|
Set<Map<String,Object>> |
getPropertySets()
Obtain all property sets as a set of maps.
|
String |
getQueryString()
Obtain that query that was specified in the body.
|
Map<String,String> |
getRequestInfoProperties()
Return a map of request info properties.
|
void |
setBody(String body)
Set the body from the request.
|
void |
setPartialResponseFields(String fields)
Set the partial response fields from the body.
|
void |
setQueryString(String query)
Set the query string.
|
public void setQueryString(String query)
query
- the query string from the bodypublic String getQueryString()
public void setPartialResponseFields(String fields)
fields
- the partial response fieldspublic String getPartialResponseFields()
public void addPropertySet(NamedPropertySet propertySet)
propertySet
- the property set to addpublic Set<NamedPropertySet> getNamedPropertySets()
public Set<Map<String,Object>> getPropertySets()
public Map<String,String> getRequestInfoProperties()
public void addRequestInfoProperty(String key, String val)
public void setBody(String body)
body
- the request bodypublic String getBody()
Copyright © 2022 Apache Software Foundation. All rights reserved.