org.littleshoot.stun.stack.message.attributes
Class StunServerAttribute

java.lang.Object
  extended by org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
      extended by org.littleshoot.stun.stack.message.attributes.StunServerAttribute
All Implemented Interfaces:
StunAttribute

public class StunServerAttribute
extends AbstractStunAttribute

The STUN server attribute.


Constructor Summary
StunServerAttribute(int bodyLength, String serverText)
          Creates a new STUN server attribute.
 
Method Summary
 void accept(StunAttributeVisitor visitor)
          Allows attributes to accept visitors.
 String getServerText()
          Gets the description of the server.
 
Methods inherited from class org.littleshoot.stun.stack.message.attributes.AbstractStunAttribute
getAttributeType, getBodyLength, getTotalLength, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StunServerAttribute

public StunServerAttribute(int bodyLength,
                           String serverText)
Creates a new STUN server attribute.

Parameters:
bodyLength - The length of the STUN server attribute body.
serverText - The text description of the server.
Method Detail

accept

public void accept(StunAttributeVisitor visitor)
Description copied from interface: StunAttribute
Allows attributes to accept visitors.

Parameters:
visitor - The visitor to accept.

getServerText

public String getServerText()
Gets the description of the server.

Returns:
The description of the server.


Copyright © 2013 LittleShoot. All Rights Reserved.