- All Known Subinterfaces:
HttpServerContext,SchemeAccessor.SchemeProperty
- All Known Implementing Classes:
HttpServerContextBuilder,Url,UrlBuilder
public interface SchemeAccessor
Provides an accessor for a URL scheme.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides a builder method for a URL scheme returning the builder for applying multiple build operations.static interfaceProvides a mutator for a URL scheme.static interfaceProvides a URL scheme. -
Method Summary
Modifier and TypeMethodDescriptionorg.refcodes.data.SchemeRetrieves the UrlScheme from the URL scheme.Retrieves the protocol representation from theScheme.
-
Method Details
-
getScheme
org.refcodes.data.Scheme getScheme()Retrieves the UrlScheme from the URL scheme.- Returns:
- The UrlScheme stored by the URL scheme.
-
toProtocol
String toProtocol()Retrieves the protocol representation from theScheme. In case of a scheme unknown by theSchemeenumeration, 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.
-