Class BasicAuthEventImpl

  • All Implemented Interfaces:
    org.refcodes.matcher.WildcardSubstitutes, org.refcodes.mixin.ActionAccessor<org.refcodes.net.HttpMethod>, org.refcodes.mixin.Dumpable, org.refcodes.mixin.SourceAccessor<org.refcodes.net.HttpMethod>, org.refcodes.net.BasicAuthCredentialsAccessor, org.refcodes.net.BasicAuthRequest, org.refcodes.net.HttpMethodAccessor, org.refcodes.net.LocalAddressAccessor, org.refcodes.net.RealmAccessor, org.refcodes.net.RemoteAddressAccessor, org.refcodes.net.UrlAccessor, org.refcodes.observer.GenericActionEvent<org.refcodes.net.HttpMethod,RestServer>, org.refcodes.observer.GenericEvent<org.refcodes.net.HttpMethod>, BasicAuthEvent


    public class BasicAuthEventImpl
    extends org.refcodes.net.BasicAuthRequestImpl
    implements BasicAuthEvent
    The BasicAuthEventImpl class implements the BasicAuthEvent type.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor

        org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>
      • Nested classes/interfaces inherited from interface org.refcodes.net.BasicAuthCredentialsAccessor

        org.refcodes.net.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B extends org.refcodes.net.BasicAuthCredentialsAccessor.BasicAuthCredentialsBuilder<B>>, org.refcodes.net.BasicAuthCredentialsAccessor.BasicAuthCredentialsMutator, org.refcodes.net.BasicAuthCredentialsAccessor.BasicAuthCredentialsProperty
      • Nested classes/interfaces inherited from interface org.refcodes.net.HttpMethodAccessor

        org.refcodes.net.HttpMethodAccessor.HttpMethodBuilder<B extends org.refcodes.net.HttpMethodAccessor.HttpMethodBuilder<B>>, org.refcodes.net.HttpMethodAccessor.HttpMethodMutator, org.refcodes.net.HttpMethodAccessor.HttpMethodProperty
      • Nested classes/interfaces inherited from interface org.refcodes.net.LocalAddressAccessor

        org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B extends org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B>>, org.refcodes.net.LocalAddressAccessor.LocalAddressMutator, org.refcodes.net.LocalAddressAccessor.LocalAddressProperty
      • Nested classes/interfaces inherited from interface org.refcodes.net.RealmAccessor

        org.refcodes.net.RealmAccessor.RealmBuilder<B extends org.refcodes.net.RealmAccessor.RealmBuilder<B>>, org.refcodes.net.RealmAccessor.RealmMutator, org.refcodes.net.RealmAccessor.RealmProperty
      • Nested classes/interfaces inherited from interface org.refcodes.net.RemoteAddressAccessor

        org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B extends org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B>>, org.refcodes.net.RemoteAddressAccessor.RemoteAddressMutator, org.refcodes.net.RemoteAddressAccessor.RemoteAddressProperty
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor

        org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends Object>
      • Nested classes/interfaces inherited from interface org.refcodes.net.UrlAccessor

        org.refcodes.net.UrlAccessor.UrlBuilder, org.refcodes.net.UrlAccessor.UrlMutator, org.refcodes.net.UrlAccessor.UrlProperty
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicAuthEventImpl​(InetSocketAddress aLocalAddress, InetSocketAddress aRemoteAddress, org.refcodes.net.HttpMethod aHttpMethod, org.refcodes.net.Url aUrl, org.refcodes.matcher.WildcardSubstitutes aWildcardSubstitutes, org.refcodes.net.BasicAuthCredentials aCredentials, String aRealm, RestServer aRestServer)  
    • Constructor Detail

      • BasicAuthEventImpl

        public BasicAuthEventImpl​(InetSocketAddress aLocalAddress,
                                  InetSocketAddress aRemoteAddress,
                                  org.refcodes.net.HttpMethod aHttpMethod,
                                  org.refcodes.net.Url aUrl,
                                  org.refcodes.matcher.WildcardSubstitutes aWildcardSubstitutes,
                                  org.refcodes.net.BasicAuthCredentials aCredentials,
                                  String aRealm,
                                  RestServer aRestServer)
        Parameters:
        aLocalAddress - The local address where the event is being received.
        aRemoteAddress - The remote address from which the request originates.
        aHttpMethod - The HttpMethod with which the request has been sent.
        aUrl - The Url from which to take the URL specific data.
        aWildcardSubstitutes - The text being substituted by the wildcard of the RestEndpoint's Locator-Pattern.
        aCredentials - The credentials retrieved from the request.
        aRealm - The realm to which this request is being addressed.
        aRestServer - The system firing the event.
    • Method Detail

      • getWildcardReplacements

        public String[] getWildcardReplacements​()
        Specified by:
        getWildcardReplacements in interface org.refcodes.matcher.WildcardSubstitutes
      • getWildcardReplacementAt

        public String getWildcardReplacementAt​(int aIndex)
        Specified by:
        getWildcardReplacementAt in interface org.refcodes.matcher.WildcardSubstitutes
      • getWildcardReplacement

        public String getWildcardReplacement​(String aWildcardName)
        Specified by:
        getWildcardReplacement in interface org.refcodes.matcher.WildcardSubstitutes
      • getWildcardReplacements

        public String[] getWildcardReplacements​(String... aWildcardNames)
        Specified by:
        getWildcardReplacements in interface org.refcodes.matcher.WildcardSubstitutes
      • getWildcardReplacementsAt

        public String[] getWildcardReplacementsAt​(int... aIndexes)
        Specified by:
        getWildcardReplacementsAt in interface org.refcodes.matcher.WildcardSubstitutes
      • getRemoteAddress

        public InetSocketAddress getRemoteAddress​()
        Specified by:
        getRemoteAddress in interface org.refcodes.net.RemoteAddressAccessor
      • getLocalAddress

        public InetSocketAddress getLocalAddress​()
        Specified by:
        getLocalAddress in interface org.refcodes.net.LocalAddressAccessor
      • getRealm

        public String getRealm​()
        Specified by:
        getRealm in interface org.refcodes.net.RealmAccessor
      • getSource

        public RestServer getSource​()
        Specified by:
        getSource in interface org.refcodes.mixin.SourceAccessor<org.refcodes.net.HttpMethod>
      • getWildcardNames

        public String[] getWildcardNames​()
        Specified by:
        getWildcardNames in interface org.refcodes.matcher.WildcardSubstitutes