public static class RequestInfo.Builder extends Object
RequestInfo
objects.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RequestInfo |
build()
Returns the RequestInfo this Builder has been constructing.
|
RequestInfo.Builder |
withContext(String contextName,
String contextValue)
Adds the name/value pair for the context of this request.
|
RequestInfo.Builder |
withMethodName(String methodName)
Adds a method name to the RequestInfo under construction.
|
RequestInfo.Builder |
withPayload(String payload)
Adds the request payload to the RequestInfo under construction.
|
RequestInfo.Builder |
withServiceName(String serviceName)
Adds a service name to the RequestInfo under construction.
|
RequestInfo.Builder |
withUrl(String url)
Adds the target URL to the RequestInfo under construction.
|
public RequestInfo.Builder withMethodName(String methodName)
methodName
- the method name to add to the RequestInfopublic RequestInfo.Builder withServiceName(String serviceName)
serviceName
- the service name to add to the RequestInfopublic RequestInfo.Builder withPayload(String payload)
payload
- the raw request string to add to the RequestInfopublic RequestInfo.Builder withUrl(String url)
url
- the URL that the request was made topublic RequestInfo.Builder withContext(String contextName, String contextValue)
contextName
- name for the valuecontextValue
- the valuepublic RequestInfo build()
Copyright © 2018. All Rights Reserved.