public interface IURLProtocol extends Serializable
EURLProtocol for
an implementation.| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsForQueryParameters() |
String |
getProtocol() |
String |
getWithProtocol(String sURL)
Prefix the passed URL with this protocol.
|
String |
getWithProtocolIfNone(String sURL)
Prefix the passed URL with this protocol if the URL does not have a
protocol yet.
|
boolean |
isUsedInURL(String sURL)
Tells if the passed String (URL) belongs to this protocol.
|
@Nonnull @Nonempty String getProtocol()
boolean isUsedInURL(@Nullable String sURL)
sURL - The URL to check. May be null.true if the passed URL starts with this protocol@Nullable String getWithProtocol(@Nullable String sURL)
sURL - The URL to be prefixed. May be null.null if the parameter is null. The
protocol is prepended independent whether the URL already has a
protocol or not.@Nullable String getWithProtocolIfNone(@Nullable String sURL)
sURL - The URL to be prefixed. May be null.null if the parameter is null. The
protocol is prepended if the URL not already has a protocol.boolean allowsForQueryParameters()
true if this protocol can handle HTTP query parameters
(?x=y&z=1)Copyright © 2014–2020 Philip Helger. All rights reserved.