Skip to content

Commit

Permalink
Rename for consistency
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1662701 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Feb 27, 2015
1 parent e601c82 commit b8c89c3
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -193,7 +193,7 @@ public void sendString(String text) throws IOException {
throw new IllegalArgumentException(sm.getString("wsRemoteEndpoint.nullData"));
}
stateMachine.textStart();
sendPartialString(CharBuffer.wrap(text), true);
sendMessageBlock(CharBuffer.wrap(text), true);
}


Expand Down Expand Up @@ -225,7 +225,7 @@ public void sendPartialString(String fragment, boolean isLast)
throw new IllegalArgumentException(sm.getString("wsRemoteEndpoint.nullData"));
}
stateMachine.textPartialStart();
sendPartialString(CharBuffer.wrap(fragment), isLast);
sendMessageBlock(CharBuffer.wrap(fragment), isLast);
}


Expand All @@ -241,7 +241,7 @@ public Writer getSendWriter() {
}


void sendPartialString(CharBuffer part, boolean last) throws IOException {
void sendMessageBlock(CharBuffer part, boolean last) throws IOException {
try {
// Get the timeout before we send the message. The message may
// trigger a session close and depending on timing the client
Expand Down Expand Up @@ -1077,7 +1077,7 @@ public void close() throws IOException {
private void doWrite(boolean last) throws IOException {
if (!Constants.STREAMS_DROP_EMPTY_MESSAGES || used) {
buffer.flip();
endpoint.sendPartialString(buffer, last);
endpoint.sendMessageBlock(buffer, last);
buffer.clear();
} else {
endpoint.stateMachine.complete(last);
Expand Down

0 comments on commit b8c89c3

Please sign in to comment.