Dela via


HttpRequest Class

  • java.lang.Object
    • com.microsoft.aad.msal4j.HttpRequest

public class HttpRequest

Contains information about outgoing HTTP request. Should be adapted to HTTP request for HTTP client of choice

Method Summary

Modifier and Type Method and Description
java.lang.String body()

HTTP request body

protected boolean canEqual(Object other)
boolean equals(Object o)
int hashCode()
java.lang.String headerValue(String headerName)
java.util.Map<java.lang.String,java.lang.String> headers()

HTTP request headers

HttpMethod httpMethod()

HttpMethod

java.net.URL url()

HTTP request url

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

body

public String body()

HTTP request body

canEqual

protected boolean canEqual(Object other)

Parameters:

other

equals

public boolean equals(Object o)

Overrides:

HttpRequest.equals(Object o)

Parameters:

o

hashCode

public int hashCode()

Overrides:

HttpRequest.hashCode()

headerValue

public String headerValue(String headerName)

Parameters:

headerName - Name of HTTP header name

Returns:

Value of HTTP header

headers

public Map headers()

HTTP request headers

httpMethod

public HttpMethod httpMethod()

HttpMethod

url

public URL url()

HTTP request url

Applies to