java.lang.Object
org.refcodes.web.BasicAuthRequestImpl
- All Implemented Interfaces:
org.refcodes.mixin.Dumpable,BasicAuthCredentialsAccessor,BasicAuthRequest,HttpMethodAccessor,UrlAccessor
public class BasicAuthRequestImpl extends Object implements BasicAuthRequest
The
BasicAuthRequestImpl class implements the
BasicAuthRequest type.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.web.BasicAuthCredentialsAccessor
BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B extends BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B>>, BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator, BasicAuthCredentialsAccessor.BasicAuthCredentialsPropertyNested classes/interfaces inherited from interface org.refcodes.web.HttpMethodAccessor
HttpMethodAccessor.HttpMethodBuilder<B extends HttpMethodAccessor.HttpMethodBuilder<B>>, HttpMethodAccessor.HttpMethodMutator, HttpMethodAccessor.HttpMethodPropertyNested classes/interfaces inherited from interface org.refcodes.web.UrlAccessor
UrlAccessor.UrlBuilder, UrlAccessor.UrlMutator, UrlAccessor.UrlProperty -
Constructor Summary
Constructors Constructor Description BasicAuthRequestImpl(HttpMethod aHttpMethod, Url aUrl, BasicAuthCredentials aCredentials)Constructs aBasicAuthRequestinstance with required attributes. -
Method Summary
Modifier and Type Method Description BasicAuthCredentialsgetBasicAuthCredentials()Retrieves theBasicAuthCredentialsfrom the Basic-Authentication credentials property (or null if there are none such credentials).HttpMethodgetHttpMethod()Retrieves the HTTP-Method from the HTTP-Method property.UrlgetUrl()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.refcodes.mixin.Dumpable
toDump, toDump, toPrintable
-
Constructor Details
-
BasicAuthRequestImpl
Constructs aBasicAuthRequestinstance with required attributes.- Parameters:
aHttpMethod- TheHttpMethodwith which the request has been sent.aUrl- TheUrlfrom which to take the URL specific data.aCredentials- The credentials retrieved from the request.
-
-
Method Details
-
getBasicAuthCredentials
Retrieves theBasicAuthCredentialsfrom the Basic-Authentication credentials property (or null if there are none such credentials).- Specified by:
getBasicAuthCredentialsin interfaceBasicAuthCredentialsAccessor- Returns:
- The
BasicAuthCredentialsstored by the basic authentication credentials property (or null if there are none such credentials).
-
getHttpMethod
Retrieves the HTTP-Method from the HTTP-Method property.- Specified by:
getHttpMethodin interfaceHttpMethodAccessor- Returns:
- The HTTP-Method stored by the HTTP-Method property.
-
getUrl
- Specified by:
getUrlin interfaceUrlAccessor- Returns:
- The Url stored by the
Urlproperty.
-