public final class WSURI
extends java.lang.Object
URI
between a HTTP(S) and WS(S) URI.Constructor and Description |
---|
WSURI() |
Modifier and Type | Method and Description |
---|---|
static java.net.URI |
toHttp(java.net.URI inputUri)
Convert to HTTP
http or https scheme URIs. |
static java.net.URI |
toWebsocket(java.lang.CharSequence inputUrl)
Convert to WebSocket
ws or wss scheme URIs |
static java.net.URI |
toWebsocket(java.lang.CharSequence inputUrl,
java.lang.String query)
Convert to WebSocket
ws or wss scheme URIs |
static java.net.URI |
toWebsocket(java.net.URI inputUri)
Convert to WebSocket
ws or wss scheme URIs |
public static java.net.URI toHttp(java.net.URI inputUri) throws java.net.URISyntaxException
http
or https
scheme URIs.
Converting ws
and wss
URIs to their HTTP equivalent
inputUri
- the input URIjava.net.URISyntaxException
- if unable to convert the input URIpublic static java.net.URI toWebsocket(java.lang.CharSequence inputUrl) throws java.net.URISyntaxException
ws
or wss
scheme URIs
Converting http
and https
URIs to their WebSocket equivalent
inputUrl
- the input URIjava.net.URISyntaxException
- if unable to convert the input URIpublic static java.net.URI toWebsocket(java.lang.CharSequence inputUrl, java.lang.String query) throws java.net.URISyntaxException
ws
or wss
scheme URIs
Converting http
and https
URIs to their WebSocket equivalent
inputUrl
- the input URIquery
- the optional query stringjava.net.URISyntaxException
- if unable to convert the input URIpublic static java.net.URI toWebsocket(java.net.URI inputUri) throws java.net.URISyntaxException
ws
or wss
scheme URIs
Converting http
and https
URIs to their WebSocket equivalent
inputUri
- the input URIjava.net.URISyntaxException
- if unable to convert the input URICopyright © 1995–2023 Webtide. All rights reserved.