Package org.refcodes.net
Interface SchemeAccessor
-
- All Known Subinterfaces:
HttpServerContext
,HttpServerContext.HttpServerContextBuilder
,SchemeAccessor.SchemeProperty
,Url
,Url.UrlBuilder
- All Known Implementing Classes:
HttpServerContextBuilderImpl
,UrlBuilderImpl
,UrlImpl
public interface SchemeAccessor
Provides an accessor for a URL scheme.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SchemeAccessor.SchemeBuilder<B extends SchemeAccessor.SchemeBuilder<B>>
Provides a builder method for a URL scheme returning the builder for applying multiple build operations.static interface
SchemeAccessor.SchemeMutator
Provides a mutator for a URL scheme.static interface
SchemeAccessor.SchemeProperty
Provides a URL scheme.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.refcodes.data.Scheme
getScheme()
Retrieves the UrlScheme from the URL scheme.java.lang.String
toProtocol()
Retrieves the protocol representation from theScheme
.
-
-
-
Method Detail
-
getScheme
org.refcodes.data.Scheme getScheme()
Retrieves the UrlScheme from the URL scheme.- Returns:
- The UrlScheme stored by the URL scheme.
-
toProtocol
java.lang.String toProtocol()
Retrieves the protocol representation from theScheme
. In case of a scheme unknown by theScheme
enumeration, thengetScheme()
might return null whilsttoProtocol()
still retrieves the unknown scheme's protocol representation (as ofSchemeAccessor.SchemeMutator.setProtocol(String)
).- Returns:
- The protocol representation for the URL.
-
-