Package org.refcodes.net
Class BasicAuthRequestImpl
- java.lang.Object
-
- org.refcodes.net.BasicAuthRequestImpl
-
- All Implemented Interfaces:
org.refcodes.mixin.Dumpable
,BasicAuthCredentialsAccessor
,BasicAuthRequest
,HttpMethodAccessor
,UrlAccessor
public class BasicAuthRequestImpl extends java.lang.Object implements BasicAuthRequest
TheBasicAuthRequestImpl
class implements theBasicAuthRequest
type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.net.BasicAuthCredentialsAccessor
BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B extends BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B>>, BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator, BasicAuthCredentialsAccessor.BasicAuthCredentialsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.HttpMethodAccessor
HttpMethodAccessor.HttpMethodBuilder<B extends HttpMethodAccessor.HttpMethodBuilder<B>>, HttpMethodAccessor.HttpMethodMutator, HttpMethodAccessor.HttpMethodProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.UrlAccessor
UrlAccessor.UrlBuilder, UrlAccessor.UrlMutator, UrlAccessor.UrlProperty
-
-
Constructor Summary
Constructors Constructor Description BasicAuthRequestImpl(HttpMethod aHttpMethod, Url aUrl, BasicAuthCredentials aCredentials)
Constructs aBasicAuthRequest
instance with required attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicAuthCredentials
getBasicAuthCredentials()
Retrieves theBasicAuthCredentials
from the Basic-Authentication credentials property (or null if there are none such credentials).HttpMethod
getHttpMethod()
Retrieves the HTTP-Method from the HTTP-Method property.Url
getUrl()
-
-
-
Constructor Detail
-
BasicAuthRequestImpl
public BasicAuthRequestImpl(HttpMethod aHttpMethod, Url aUrl, BasicAuthCredentials aCredentials)
Constructs aBasicAuthRequest
instance with required attributes.- Parameters:
aHttpMethod
- TheHttpMethod
with which the request has been sent.aUrl
- TheUrl
from which to take the URL specific data.aCredentials
- The credentials retrieved from the request.
-
-
Method Detail
-
getBasicAuthCredentials
public BasicAuthCredentials getBasicAuthCredentials()
Retrieves theBasicAuthCredentials
from the Basic-Authentication credentials property (or null if there are none such credentials).- Specified by:
getBasicAuthCredentials
in interfaceBasicAuthCredentialsAccessor
- Returns:
- The
BasicAuthCredentials
stored by the basic authentication credentials property (or null if there are none such credentials).
-
getHttpMethod
public HttpMethod getHttpMethod()
Retrieves the HTTP-Method from the HTTP-Method property.- Specified by:
getHttpMethod
in interfaceHttpMethodAccessor
- Returns:
- The HTTP-Method stored by the HTTP-Method property.
-
getUrl
public Url getUrl()
- Specified by:
getUrl
in interfaceUrlAccessor
- Returns:
- The Url stored by the
Url
property.
-
-