this.channelContext = channelContext; this.connection = channelContext.getConnection();
if (outputStream == null) { setMessageHeaders(); outputStream = connection.openOutputStream(); } connection.flush();
return channelContext;
return contentType;
return channelContext.getTargetWSURI().toString();
if (getStatus() == TCPConstants.ONE_WAY) { return FrameType.NULL; } else if (getStatus() != TCPConstants.OK) { return FrameType.ERROR; } return FrameType.MESSAGE;
return replyStatus;
return null;
return false;
inputStream = connection.openInputStream(); contentType = channelContext.getContentType(); return inputStream;
try { setMessageHeaders(); } catch (IOException ex) { } outputStream = connection.openOutputStream(); return outputStream;
setStatus(TCPConstants.ERROR); OutputStream output = openOutput(); String description = message.getDescription(); DataInOutUtils.writeInts4(output, message.getCode(), message.getSubCode(), description.length()); output.write(description.getBytes(TCPConstants.UTF8)); flush();
this.contentType = contentType;
if (!isHeaderSerialized) { isHeaderSerialized = true; final int messageId = getMessageId(); connection.setMessageId(messageId); if (FrameType.isFrameContainsParams(messageId)) { channelContext.setContentType(contentType); } }
replyStatus = statusCode;