public final class EndpointUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
formatFromUri(String inputUri)
http://xxx -> rest://xxx
https://xxx -> rest://xxx?sslEnabled=true
h2c://xxx -> rest://xxx?protocol=http2
h2://xxx -> rest://xxx?sslEnabled=true&protocol=http2
xxx -> rest://xxx:port?protocol=http2
xxx?a=a1 -> rest://xxx:port?a=a1&protocol=http2
other://xxx -> other://xxx
|
static Endpoint |
parse(String uriEndpoint) |
public static Endpoint parse(String uriEndpoint)
uriEndpoint - eg: rest://xxx?sslEnabled=truepublic static String formatFromUri(String inputUri)
http://xxx -> rest://xxx https://xxx -> rest://xxx?sslEnabled=true h2c://xxx -> rest://xxx?protocol=http2 h2://xxx -> rest://xxx?sslEnabled=true&protocol=http2 xxx -> rest://xxx:port?protocol=http2 xxx?a=a1 -> rest://xxx:port?a=a1&protocol=http2 other://xxx -> other://xxxThis method provided for convenience of handling user input endpoints, and do not have a strict meaning. Make sure all unit test cases work before change.
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.