AeroGear Netty SockJS Codec 0.11.0

org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol
Class CloseFrame

java.lang.Object
  extended by io.netty.buffer.DefaultByteBufHolder
      extended by org.jboss.aerogear.io.netty.handler.codec.sockjs.protocol.CloseFrame
All Implemented Interfaces:
io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted, Frame

public class CloseFrame
extends io.netty.buffer.DefaultByteBufHolder
implements Frame

This frame is sent from the server if the client requests data from a closed connection.


Constructor Summary
CloseFrame(int statusCode, String statusMsg)
          Creates a new frame with the specified status code and message.
 
Method Summary
 CloseFrame copy()
           
 CloseFrame duplicate()
           
 CloseFrame retain()
           
 CloseFrame retain(int increment)
           
 int statusCode()
          Returns the status code for this close frame.
 String statusMsg()
          Returns the status message for this close frame.
 String toString()
           
 
Methods inherited from class io.netty.buffer.DefaultByteBufHolder
content, refCnt, release, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface io.netty.buffer.ByteBufHolder
content
 
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
 

Constructor Detail

CloseFrame

public CloseFrame(int statusCode,
                  String statusMsg)
Creates a new frame with the specified status code and message.

Parameters:
statusCode - the status code for this close frame.
statusMsg - the status message for this close frame.
Method Detail

statusCode

public int statusCode()
Returns the status code for this close frame.

Returns:
int the status code.

statusMsg

public String statusMsg()
Returns the status message for this close frame.

Returns:
String the status message for this close frame.

toString

public String toString()
Overrides:
toString in class io.netty.buffer.DefaultByteBufHolder

copy

public CloseFrame copy()
Specified by:
copy in interface io.netty.buffer.ByteBufHolder
Specified by:
copy in interface Frame
Overrides:
copy in class io.netty.buffer.DefaultByteBufHolder

duplicate

public CloseFrame duplicate()
Specified by:
duplicate in interface io.netty.buffer.ByteBufHolder
Specified by:
duplicate in interface Frame
Overrides:
duplicate in class io.netty.buffer.DefaultByteBufHolder

retain

public CloseFrame retain()
Specified by:
retain in interface io.netty.buffer.ByteBufHolder
Specified by:
retain in interface io.netty.util.ReferenceCounted
Specified by:
retain in interface Frame
Overrides:
retain in class io.netty.buffer.DefaultByteBufHolder

retain

public CloseFrame retain(int increment)
Specified by:
retain in interface io.netty.buffer.ByteBufHolder
Specified by:
retain in interface io.netty.util.ReferenceCounted
Specified by:
retain in interface Frame
Overrides:
retain in class io.netty.buffer.DefaultByteBufHolder

AeroGear Netty SockJS Codec 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.