Java Code Examples for javax.websocket.Extension#getName()

The following examples show how to use javax.websocket.Extension#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UpgradeUtil.java    From Tomcat8-Source-Read with MIT License 6 votes vote down vote up
private static void append(StringBuilder sb, Extension extension) {
    if (extension == null || extension.getName() == null || extension.getName().length() == 0) {
        return;
    }

    sb.append(extension.getName());

    for (Extension.Parameter p : extension.getParameters()) {
        sb.append(';');
        sb.append(p.getName());
        if (p.getValue() != null) {
            sb.append('=');
            sb.append(p.getValue());
        }
    }
}
 
Example 2
Source File: UpgradeUtil.java    From Tomcat7.0.67 with Apache License 2.0 6 votes vote down vote up
private static void append(StringBuilder sb, Extension extension) {
    if (extension == null || extension.getName() == null || extension.getName().length() == 0) {
        return;
    }

    sb.append(extension.getName());

    for (Extension.Parameter p : extension.getParameters()) {
        sb.append(';');
        sb.append(p.getName());
        if (p.getValue() != null) {
            sb.append('=');
            sb.append(p.getValue());
        }
    }
}
 
Example 3
Source File: UpgradeUtil.java    From tomcatsrc with Apache License 2.0 6 votes vote down vote up
private static void append(StringBuilder sb, Extension extension) {
    if (extension == null || extension.getName() == null || extension.getName().length() == 0) {
        return;
    }

    sb.append(extension.getName());

    for (Extension.Parameter p : extension.getParameters()) {
        sb.append(';');
        sb.append(p.getName());
        if (p.getValue() != null) {
            sb.append('=');
            sb.append(p.getValue());
        }
    }
}
 
Example 4
Source File: StandardToWebSocketExtensionAdapter.java    From spring-analysis-note with MIT License 4 votes vote down vote up
public StandardToWebSocketExtensionAdapter(Extension extension) {
	super(extension.getName(), initParameters(extension));
}
 
Example 5
Source File: StandardToWebSocketExtensionAdapter.java    From java-technology-stack with MIT License 4 votes vote down vote up
public StandardToWebSocketExtensionAdapter(Extension extension) {
	super(extension.getName(), initParameters(extension));
}
 
Example 6
Source File: StandardToWebSocketExtensionAdapter.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public StandardToWebSocketExtensionAdapter(Extension extension) {
	super(extension.getName(), initParameters(extension));
}