- All Known Implementing Classes:
URLFieldSource
public interface FieldSource
A source providing the incomplete fields of
PartialURL
and used in
matching.-
Method Summary
Modifier and TypeMethodDescriptionGets the context path for this URL, only ending in a slash (/) when isthe root context
.getHost()
Gets the IP address or hostname for this URL.getPath()
Gets the path for this URL ornull
when the path does not exist or is empty.getPort()
Gets the port number for this URL.Gets the scheme (such as https/http/other) for this URL.
-
Method Details
-
getScheme
Gets the scheme (such as https/http/other) for this URL.- Throws:
MalformedURLException
- When unable to obtain the scheme or the obtained scheme is invalid- See Also:
-
getHost
Gets the IP address or hostname for this URL.- Throws:
MalformedURLException
- When unable to obtain the host or the obtained host is invalid- See Also:
-
getPort
Gets the port number for this URL.- Throws:
MalformedURLException
- When unable to obtain the port or the obtained port is invalid- See Also:
-
getContextPath
Gets the context path for this URL, only ending in a slash (/) when isthe root context
.- Throws:
MalformedURLException
- When unable to obtain the context path or the obtained context path is invalid- See Also:
-
getPath
Gets the path for this URL ornull
when the path does not exist or is empty.- Throws:
MalformedURLException
- When unable to obtain the path or the obtained path is invalid- See Also:
-