Constructor and Description |
---|
WSURI() |
Modifier and Type | Method and Description |
---|---|
static URI |
toHttp(URI inputUri)
Convert to HTTP
http or https scheme URIs. |
static URI |
toWebsocket(CharSequence inputUrl)
Convert to WebSocket
ws or wss scheme URIs |
static URI |
toWebsocket(CharSequence inputUrl,
String query)
Convert to WebSocket
ws or wss scheme URIs |
static URI |
toWebsocket(URI inputUri)
Convert to WebSocket
ws or wss scheme URIs |
public static URI toHttp(URI inputUri) throws URISyntaxException
http
or https
scheme URIs.
Converting ws
and wss
URIs to their HTTP equivalent
inputUri
- the input URIURISyntaxException
- if unable to convert the input URIpublic static URI toWebsocket(CharSequence inputUrl) throws URISyntaxException
ws
or wss
scheme URIs
Converting http
and https
URIs to their WebSocket equivalent
inputUrl
- the input URIURISyntaxException
- if unable to convert the input URIpublic static URI toWebsocket(CharSequence inputUrl, String query) throws URISyntaxException
ws
or wss
scheme URIs
Converting http
and https
URIs to their WebSocket equivalent
inputUrl
- the input URIquery
- the optional query stringURISyntaxException
- if unable to convert the input URIpublic static URI toWebsocket(URI inputUri) throws URISyntaxException
ws
or wss
scheme URIs
Converting http
and https
URIs to their WebSocket equivalent
inputUri
- the input URIURISyntaxException
- if unable to convert the input URICopyright © 1995-2015 Webtide. All Rights Reserved.