|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.adamcin.httpsig.api.RequestContent.Builder
public static final class RequestContent.Builder
| Constructor Summary | |
|---|---|
RequestContent.Builder()
|
|
| Method Summary | |
|---|---|
RequestContent.Builder |
addDate(Calendar calendar)
IMPORTANT: If you call this overload instead of addHeader(String, String), be sure to retrieve the
generated header value to add to your client request using a subsequent call to RequestContent.getDate(). |
RequestContent.Builder |
addDate(Date dateGMT)
IMPORTANT: If you call this overload instead of addHeader(String, String), be sure to retrieve the
generated header value to add to your client request using a subsequent call to RequestContent.getDate(). |
RequestContent.Builder |
addDateNow()
IMPORTANT: If you call this overload instead of addHeader(String, String), be sure to retrieve the
generated header value to add to your client request using a subsequent call to RequestContent.getDate(). |
RequestContent.Builder |
addHeader(String name,
String value)
Adds a header name and value pair |
RequestContent |
build()
|
RequestContent.Builder |
setRequestLine(String requestLine)
Deprecated. |
RequestContent.Builder |
setRequestTarget(String method,
String path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestContent.Builder()
| Method Detail |
|---|
@Deprecated public RequestContent.Builder setRequestLine(String requestLine)
public RequestContent.Builder setRequestTarget(String method,
String path)
public RequestContent.Builder addHeader(String name,
String value)
name - value -
public RequestContent.Builder addDate(Calendar calendar)
addHeader(String, String), be sure to retrieve the
generated header value to add to your client request using a subsequent call to RequestContent.getDate(). This is
merely a convenience method to generate a date header in the correct format.
calendar - the Calendar to provide
public RequestContent.Builder addDate(Date dateGMT)
addHeader(String, String), be sure to retrieve the
generated header value to add to your client request using a subsequent call to RequestContent.getDate(). This is
merely a convenience method to generate a date header in the correct format.
dateGMT - the current date in GMT
RequestContent.Builderpublic RequestContent.Builder addDateNow()
addHeader(String, String), be sure to retrieve the
generated header value to add to your client request using a subsequent call to RequestContent.getDate(). This is
merely a convenience method to generate a date header in the correct format.
RequestContent.Builderpublic RequestContent build()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||