Class TyrusUpgradeResponse

  • All Implemented Interfaces:
    HandshakeResponse

    public class TyrusUpgradeResponse
    extends UpgradeResponse
    HTTP response representation.
    Author:
    Pavel Bucek (pavel.bucek at oracle.com)
    • Constructor Detail

      • TyrusUpgradeResponse

        public TyrusUpgradeResponse()
    • Method Detail

      • getStatus

        public int getStatus()
        Get HTTP status.
        Specified by:
        getStatus in class UpgradeResponse
        Returns:
        HTTP status.
      • getReasonPhrase

        public java.lang.String getReasonPhrase()
        Get HTTP reason phrase.
        Returns:
        reason phrase.
      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        Get HTTP headers.
        Returns:
        HTTP headers.
      • setStatus

        public void setStatus​(int statusCode)
        Set HTTP status.
        Specified by:
        setStatus in class UpgradeResponse
        Parameters:
        statusCode - status code to be set.
      • setReasonPhrase

        public void setReasonPhrase​(java.lang.String reasonPhrase)
        Set HTTP reason phrase.
        Specified by:
        setReasonPhrase in class UpgradeResponse
        Parameters:
        reasonPhrase - reason phrase to be set.