Package org.refcodes.net
Interface SchemeAccessor.SchemeMutator
-
- All Known Subinterfaces:
HttpServerContext.HttpServerContextBuilder
,SchemeAccessor.SchemeProperty
,Url.UrlBuilder
- All Known Implementing Classes:
HttpServerContextBuilderImpl
,UrlBuilderImpl
- Enclosing interface:
- SchemeAccessor
public static interface SchemeAccessor.SchemeMutator
Provides a mutator for a URL scheme.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setProtocol(java.lang.String aProtocol)
Sets the protocolString
representation for the scheme property.void
setScheme(org.refcodes.data.Scheme aScheme)
Sets the UrlScheme for the URL scheme.
-
-
-
Method Detail
-
setScheme
void setScheme(org.refcodes.data.Scheme aScheme)
Sets the UrlScheme for the URL scheme.- Parameters:
aScheme
- The UrlScheme to be stored by the URL scheme.
-
setProtocol
void setProtocol(java.lang.String aProtocol)
Sets the protocolString
representation for the scheme property. You must provide the scheme's specific part as well. In case of HTTP, provide "http://". In case your provided protocol is unknown by theScheme
enumeration, then the scheme property will not be set, though theSchemeAccessor.toProtocol()
still returns your protocol.- Parameters:
aProtocol
- The UrlScheme'sString
representation to be stored by the URL scheme.
-
-