Package 

Class Response

  • All Implemented Interfaces:

    
    public class Response
    extends Message
                        

    A response descendant of the message class. The primary purpose of the Response class is to allow better functional definition of the classes in the stack package.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean isErrorResponse() Determines whether this instance represents a STUN error response.
      boolean isSuccessResponse() Determines whether this instance represents a STUN success response.
      void setMessageType(char responseType) Checks whether responseType is a valid response type and if yes sets it as the type of the current instance.
      • Methods inherited from class org.ice4j.message.Message

        containsAttribute, decode, encode, equals, getAttribute, getAttributeCount, getAttributes, getDataLength, getDataLengthWithoutPadding, getMessageType, getName, getTransactionID, isErrorResponseType, isIndicationType, isRequestType, isResponseType, isSuccessResponseType, putAttribute, removeAttribute, setTransactionID, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • isErrorResponse

         boolean isErrorResponse()

        Determines whether this instance represents a STUN error response.

      • isSuccessResponse

         boolean isSuccessResponse()

        Determines whether this instance represents a STUN success response.

      • setMessageType

         void setMessageType(char responseType)

        Checks whether responseType is a valid response type and if yes sets it as the type of the current instance.

        Parameters:
        responseType - the type to set