Class WSURI
java.lang.Object
org.eclipse.jetty.websocket.api.util.WSURI
Utility methods for converting a
URI
between a HTTP(S) and WS(S) URI.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic URI
Convert to HTTPhttp
orhttps
scheme URIs.static URI
toWebsocket
(CharSequence inputUrl) Convert to WebSocketws
orwss
scheme URIsstatic URI
toWebsocket
(CharSequence inputUrl, String query) Convert to WebSocketws
orwss
scheme URIsstatic URI
toWebsocket
(URI inputUri) Convert to WebSocketws
orwss
scheme URIs
-
Constructor Details
-
WSURI
public WSURI()
-
-
Method Details
-
toHttp
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
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
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
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
-