Package com.naver.ads.network.raw
Class HttpRequestProperties
-
- All Implemented Interfaces:
-
android.os.Parcelable,com.naver.ads.inspector.MapSerializable
public final class HttpRequestProperties implements Parcelable, MapSerializable<Any>
Defines the properties for HttpRequest.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHttpRequestProperties.BuilderBuilder for HttpRequestProperties instances.
-
Field Summary
Fields Modifier and Type Field Description private final Uriuriprivate final HttpMethodmethodprivate final HttpHeadersheadersprivate final ByteArraybodyprivate final IntegerconnectTimeoutMillisprivate final IntegerreadTimeoutMillisprivate final BooleanallowCrossProtocolRedirectsprivate final BooleanuseStreamprivate final BooleancollectFailureLog
-
Constructor Summary
Constructors Constructor Description HttpRequestProperties(Uri uri, HttpMethod method, HttpHeaders headers, ByteArray body, Integer connectTimeoutMillis, Integer readTimeoutMillis, Boolean allowCrossProtocolRedirects, Boolean useStream, Boolean collectFailureLog)Constructs a new HttpRequestProperties instance.
-
Method Summary
Modifier and Type Method Description final UrigetUri()the uri of the HTTP request. final HttpMethodgetMethod()the HTTP request method. final HttpHeadersgetHeaders()the HTTP request headers. final ByteArraygetBody()the HTTP request body or null for none. final IntegergetConnectTimeoutMillis()the HTTP request's connection timeout millis. final IntegergetReadTimeoutMillis()the HTTP request's read timeout millis. final BooleangetAllowCrossProtocolRedirects()whether cross-protocol redirects (i.e. final BooleangetUseStream()whether to use an InputStream or not. final BooleangetCollectFailureLog()final HttpRequestProperties.BuilderbuildUpon()Constructs a new properties via HttpRequestProperties.Builder Map<String, Object>toMap()Returns a Map containing the values of the members of this instance. Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
HttpRequestProperties
HttpRequestProperties(Uri uri, HttpMethod method, HttpHeaders headers, ByteArray body, Integer connectTimeoutMillis, Integer readTimeoutMillis, Boolean allowCrossProtocolRedirects, Boolean useStream, Boolean collectFailureLog)
Constructs a new HttpRequestProperties instance.
-
-
Method Detail
-
getMethod
final HttpMethod getMethod()
the HTTP request method.
-
getHeaders
final HttpHeaders getHeaders()
the HTTP request headers.
-
getConnectTimeoutMillis
final Integer getConnectTimeoutMillis()
the HTTP request's connection timeout millis.
-
getReadTimeoutMillis
final Integer getReadTimeoutMillis()
the HTTP request's read timeout millis.
-
getAllowCrossProtocolRedirects
final Boolean getAllowCrossProtocolRedirects()
whether cross-protocol redirects (i.e. redirects from HTTP to HTTPS and vice versa) are enabled when fetching remote data.
-
getUseStream
final Boolean getUseStream()
whether to use an InputStream or not.
-
getCollectFailureLog
final Boolean getCollectFailureLog()
-
buildUpon
final HttpRequestProperties.Builder buildUpon()
Constructs a new properties via HttpRequestProperties.Builder
-
toMap
Map<String, Object> toMap()
Returns a Map containing the values of the members of this instance.
-
-
-
-