public void validateServerResponse(HttpResponsePacket headers) { if (Constants.RESPONSE_CODE_VALUE != headers.getStatus()) { throw new HandshakeException(String.format("Response code was not %s: %s %s", Constants.RESPONSE_CODE_VALUE, headers.getStatus(), headers.getReasonPhrase())); } checkForHeader(headers, Constants.UPGRADE, Constants.WEBSOCKET); checkForHeader(headers, Constants.CONNECTION, Constants.UPGRADE); checkForSubProtocol(headers); }
public void validateServerResponse(HttpResponsePacket headers) { if (Constants.RESPONSE_CODE_VALUE != headers.getStatus()) { throw new HandshakeException(String.format("Response code was not %s: %s %s", Constants.RESPONSE_CODE_VALUE, headers.getStatus(), headers.getReasonPhrase())); } checkForHeader(headers, Constants.UPGRADE, Constants.WEBSOCKET); checkForHeader(headers, Constants.CONNECTION, Constants.UPGRADE); checkForSubProtocol(headers); }
public void validateServerResponse(HttpResponsePacket headers) { if (Constants.RESPONSE_CODE_VALUE != headers.getStatus()) { throw new HandshakeException(String.format("Response code was not %s: %s %s", Constants.RESPONSE_CODE_VALUE, headers.getStatus(), headers.getReasonPhrase())); } checkForHeader(headers, Constants.UPGRADE, Constants.WEBSOCKET); checkForHeader(headers, Constants.CONNECTION, Constants.UPGRADE); checkForSubProtocol(headers); }
public void validateServerResponse(HttpResponsePacket headers) { if (Constants.RESPONSE_CODE_VALUE != headers.getStatus()) { throw new HandshakeException(String.format("Response code was not %s: %s %s", Constants.RESPONSE_CODE_VALUE, headers.getStatus(), headers.getReasonPhrase())); } checkForHeader(headers, Constants.UPGRADE, Constants.WEBSOCKET); checkForHeader(headers, Constants.CONNECTION, Constants.UPGRADE); checkForSubProtocol(headers); }
public void validateServerResponse(HttpResponsePacket headers) { if (Constants.RESPONSE_CODE_VALUE != headers.getStatus()) { throw new HandshakeException(String.format("Response code was not %s: %s %s", Constants.RESPONSE_CODE_VALUE, headers.getStatus(), headers.getReasonPhrase())); } checkForHeader(headers, Constants.UPGRADE, Constants.WEBSOCKET); checkForHeader(headers, Constants.CONNECTION, Constants.UPGRADE); checkForSubProtocol(headers); }
public void validateServerResponse(HttpResponsePacket headers) { if (Constants.RESPONSE_CODE_VALUE != headers.getStatus()) { throw new HandshakeException(String.format("Response code was not %s: %s %s", Constants.RESPONSE_CODE_VALUE, headers.getStatus(), headers.getReasonPhrase())); } checkForHeader(headers, Constants.UPGRADE, Constants.WEBSOCKET); checkForHeader(headers, Constants.CONNECTION, Constants.UPGRADE); checkForSubProtocol(headers); }