
org.kurento.jsonrpc.internal.ws.CloseStatusHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kurento-jsonrpc-server Show documentation
Show all versions of kurento-jsonrpc-server Show documentation
JSON-RPC Protocol Server with transports based on http and websocket
package org.kurento.jsonrpc.internal.ws;
public class CloseStatusHelper {
public static String getCloseStatusType(int code) {
switch (code) {
case 1000:
return "NORMAL";
case 1001:
return "GOING_AWAY";
case 1002:
return "PROTOCOL_ERROR";
case 1003:
return "NOT_ACEPTABLE";
case 1005:
return "NO_STATUS_CODE";
case 1006:
return "NO_CLOSE_FRAME";
case 1007:
return "BAD_DATA";
case 1008:
return "POLICY_VIOLATION";
case 1009:
return "TOO_BIG_TO_PROCESS";
case 1010:
return "REQUIRED_EXTENSION";
case 1011:
return "SERVER_ERROR";
case 1012:
return "SERVICE_RESTARTED";
case 1013:
return "SERVICE_OVERLOAD";
case 1015:
return "TLS_HANDSHAKE_FAILURE";
case 4500:
return "SESSION_NOT_RELIABLE";
default:
return "UNKNOWN";
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy