Class WSURI
- java.lang.Object
-
- org.eclipse.jetty.websocket.api.util.WSURI
-
@Deprecated(since="2021-05-27") public final class WSURI extends Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Utility methods for converting aURI
between an HTTP(S) and WS(S) URI.
-
-
Constructor Summary
Constructors Constructor Description WSURI()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static URI
toHttp(URI inputUri)
Deprecated.Convert to HTTPhttp
orhttps
scheme URIs.static URI
toWebsocket(CharSequence inputUrl)
Deprecated.Convert to WebSocketws
orwss
scheme URIsstatic URI
toWebsocket(CharSequence inputUrl, String query)
Deprecated.Convert to WebSocketws
orwss
scheme URIsstatic URI
toWebsocket(URI inputUri)
Deprecated.Convert to WebSocketws
orwss
scheme URIs
-
-
-
Method Detail
-
toHttp
public static URI toHttp(URI inputUri) throws URISyntaxException
Deprecated.Convert to HTTPhttp
orhttps
scheme URIs.Converting
ws
andwss
URIs to their HTTP equivalent- Parameters:
inputUri
- the input URI- Returns:
- the HTTP scheme URI for the input URI.
- Throws:
URISyntaxException
- if unable to convert the input URI
-
toWebsocket
public static URI toWebsocket(CharSequence inputUrl) throws URISyntaxException
Deprecated.Convert to WebSocketws
orwss
scheme URIsConverting
http
andhttps
URIs to their WebSocket equivalent- Parameters:
inputUrl
- the input URI- Returns:
- the WebSocket scheme URI for the input URI.
- Throws:
URISyntaxException
- if unable to convert the input URI
-
toWebsocket
public static URI toWebsocket(CharSequence inputUrl, String query) throws URISyntaxException
Deprecated.Convert to WebSocketws
orwss
scheme URIsConverting
http
andhttps
URIs to their WebSocket equivalent- Parameters:
inputUrl
- the input URIquery
- the optional query string- Returns:
- the WebSocket scheme URI for the input URI.
- Throws:
URISyntaxException
- if unable to convert the input URI
-
toWebsocket
public static URI toWebsocket(URI inputUri) throws URISyntaxException
Deprecated.Convert to WebSocketws
orwss
scheme URIsConverting
http
andhttps
URIs to their WebSocket equivalent- Parameters:
inputUri
- the input URI- Returns:
- the WebSocket scheme URI for the input URI.
- Throws:
URISyntaxException
- if unable to convert the input URI
-
-