public interface IHttpRequest
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String header,
java.lang.String value)
Adds a header to this request
|
long |
getDelay()
Gets delay between retries
|
java.util.List<HeaderOption> |
getHeaders()
Gets the headers
|
HttpMethod |
getHttpMethod()
Gets the HTTP method
|
int |
getMaxRedirects()
Gets the max redirects
|
int |
getMaxRetries()
Gets max retries
|
java.util.List<Option> |
getOptions()
Gets the options
|
java.net.URL |
getRequestUrl()
Gets the request URL
|
com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect |
getShouldRedirect()
Gets the should redirect callback
|
com.microsoft.graph.httpcore.middlewareoption.IShouldRetry |
getShouldRetry()
Gets the should retry callback
|
boolean |
getUseCaches()
Gets useCaches parameter
|
void |
setDelay(long delay)
Sets the delay in seconds between retires
|
void |
setMaxRedirects(int maxRedirects)
Sets the max redirects
|
void |
setMaxRetries(int maxRetries)
Sets the max retries
|
void |
setShouldRedirect(com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect shouldRedirect)
Sets the should redirect callback
|
void |
setShouldRetry(com.microsoft.graph.httpcore.middlewareoption.IShouldRetry shouldretry)
Sets the should retry callback
|
void |
setUseCaches(boolean useCaches)
Sets useCaches parameter to cache the response
|
java.net.URL getRequestUrl()
HttpMethod getHttpMethod()
java.util.List<HeaderOption> getHeaders()
java.util.List<Option> getOptions()
void addHeader(java.lang.String header, java.lang.String value)
header
- the name of the headervalue
- the value of the headervoid setUseCaches(boolean useCaches)
useCaches
- the value of useCachesboolean getUseCaches()
void setMaxRedirects(int maxRedirects)
maxRedirects
- Max redirects that a request can takeint getMaxRedirects()
void setShouldRedirect(com.microsoft.graph.httpcore.middlewareoption.IShouldRedirect shouldRedirect)
shouldRedirect
- Callback called before doing a redirectcom.microsoft.graph.httpcore.middlewareoption.IShouldRedirect getShouldRedirect()
void setShouldRetry(com.microsoft.graph.httpcore.middlewareoption.IShouldRetry shouldretry)
shouldretry
- The callback called before retrycom.microsoft.graph.httpcore.middlewareoption.IShouldRetry getShouldRetry()
void setMaxRetries(int maxRetries)
maxRetries
- Max retries for a requestint getMaxRetries()
void setDelay(long delay)
delay
- Delay in seconds between retrieslong getDelay()