-
- All Superinterfaces:
SchemeAccessor
,SchemeAccessor.SchemeMutator
- All Known Implementing Classes:
HttpServerContextBuilder
,UrlBuilder
- Enclosing interface:
- SchemeAccessor
public static interface SchemeAccessor.SchemeProperty extends SchemeAccessor, SchemeAccessor.SchemeMutator
Provides a URL scheme.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.web.SchemeAccessor
SchemeAccessor.SchemeBuilder<B extends SchemeAccessor.SchemeBuilder<B>>, SchemeAccessor.SchemeMutator, SchemeAccessor.SchemeProperty
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default String
letProtocol(String aProtocol)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenString
(setter) as ofSchemeAccessor.SchemeMutator.setProtocol(String)
and returns the very same value (getter).default org.refcodes.data.Scheme
letScheme(org.refcodes.data.Scheme aScheme)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenScheme
(setter) as ofSchemeAccessor.SchemeMutator.setScheme(Scheme)
and returns the very same value (getter).-
Methods inherited from interface org.refcodes.web.SchemeAccessor
getScheme, toProtocol
-
Methods inherited from interface org.refcodes.web.SchemeAccessor.SchemeMutator
setProtocol, setScheme
-
-
-
-
Method Detail
-
letScheme
default org.refcodes.data.Scheme letScheme(org.refcodes.data.Scheme aScheme)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenScheme
(setter) as ofSchemeAccessor.SchemeMutator.setScheme(Scheme)
and returns the very same value (getter).- Parameters:
aScheme
- TheScheme
to set (viaSchemeAccessor.SchemeMutator.setScheme(Scheme)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
letProtocol
default String letProtocol(String aProtocol)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenString
(setter) as ofSchemeAccessor.SchemeMutator.setProtocol(String)
and returns the very same value (getter).- Parameters:
aProtocol
- TheString
to set (viaSchemeAccessor.SchemeMutator.setProtocol(String)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-
-