Module org.refcodes.web
Package org.refcodes.web
Interface RedirectDepthAccessor.RedirectDepthProperty
- All Superinterfaces:
RedirectDepthAccessor
,RedirectDepthAccessor.RedirectDepthMutator
- All Known Implementing Classes:
HttpClientRequest
- Enclosing interface:
- RedirectDepthAccessor
public static interface RedirectDepthAccessor.RedirectDepthProperty
extends RedirectDepthAccessor, RedirectDepthAccessor.RedirectDepthMutator
Provides a redirect depth property. The redirect depth provides the count
of HTTP-Request and HTTP-Response cycles where the response represents a
redirect as of
HttpStatusCode.isRedirectStatus()
. A value of -1
represents the default behavior, e.g. using
HttpURLConnection
's redirection means.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.web.RedirectDepthAccessor
RedirectDepthAccessor.RedirectDepthBuilder<B extends RedirectDepthAccessor.RedirectDepthBuilder<B>>, RedirectDepthAccessor.RedirectDepthMutator, RedirectDepthAccessor.RedirectDepthProperty
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
letRedirectDepth
(int aRedirectDepth) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofRedirectDepthAccessor.RedirectDepthMutator.setRedirectDepth(int)
and returns the very same value (getter).Methods inherited from interface org.refcodes.web.RedirectDepthAccessor
getRedirectDepth
Methods inherited from interface org.refcodes.web.RedirectDepthAccessor.RedirectDepthMutator
setRedirectDepth
-
Method Details
-
letRedirectDepth
default int letRedirectDepth(int aRedirectDepth) This method stores and passes through the given argument, which is very useful for builder APIs: Sets the given integer (setter) as ofRedirectDepthAccessor.RedirectDepthMutator.setRedirectDepth(int)
and returns the very same value (getter).- Parameters:
aRedirectDepth
- The integer to set (viaRedirectDepthAccessor.RedirectDepthMutator.setRedirectDepth(int)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-