public class ChannelSettings extends PropertiesSettings
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
clientContextParsed |
protected String |
clientType |
protected SecurityConstraint |
constraint |
protected boolean |
contextParsed |
protected String |
endpointType |
protected String |
id |
protected String |
parsedClientUri |
protected String |
parsedUri |
protected int |
port |
protected boolean |
remote |
protected String |
serverId |
protected boolean |
serverOnly |
protected String |
uri |
properties| Constructor and Description |
|---|
ChannelSettings(String id) |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientParsedUri(String contextPath) |
String |
getClientType() |
SecurityConstraint |
getConstraint() |
String |
getEndpointType() |
String |
getId() |
int |
getPort()
A return value of 0 denotes no port in channel url.
|
String |
getServerId() |
boolean |
getServerOnly() |
String |
getUri() |
boolean |
isRemote() |
static String |
parseHost(String url)
Returns the host name in the URL, or an empty String if the URL does not contain a host name.
|
static int |
parsePort(String url)
Returns the port number specified in the URL, or 0 if the URL
does not contain a port number, or -1 if the URL contains a server.port
token.
|
static String |
removeTokens(String url)
Remove protocol, host, port and context-root from a given url.
|
void |
setClientType(String type) |
void |
setConstraint(SecurityConstraint constraint) |
void |
setEndpointType(String type) |
void |
setRemote(boolean value) |
void |
setServerId(String value) |
void |
setServerOnly(boolean serverOnly) |
void |
setUri(String uri) |
addProperties, addProperty, addProperty, getProperties, getProperty, getPropertyAsBoolean, getPropertyAsInt, getPropertyAsList, getPropertyAsLong, getPropertyAsMap, getPropertyAsStringprotected String id
protected boolean remote
protected String serverId
protected SecurityConstraint constraint
protected String uri
protected int port
protected String endpointType
protected String clientType
protected boolean serverOnly
protected String parsedUri
protected boolean contextParsed
protected String parsedClientUri
protected boolean clientContextParsed
public ChannelSettings(String id)
public String getId()
public boolean isRemote()
public void setRemote(boolean value)
public String getServerId()
public void setServerId(String value)
public String getClientType()
public void setClientType(String type)
public boolean getServerOnly()
public void setServerOnly(boolean serverOnly)
public int getPort()
public String getUri()
public void setUri(String uri)
public String getEndpointType()
public void setEndpointType(String type)
public SecurityConstraint getConstraint()
public void setConstraint(SecurityConstraint constraint)
public static String parseHost(String url)
url - The URL to parse for a host name.public static int parsePort(String url)
url - The URL to parse for a contained port number.public static String removeTokens(String url)
url - Original url.Copyright © 2015 The Apache Software Foundation. All rights reserved.