Package org.glassfish.tyrus.core
Class TyrusUpgradeResponse
- java.lang.Object
-
- org.glassfish.tyrus.spi.UpgradeResponse
-
- org.glassfish.tyrus.core.TyrusUpgradeResponse
-
- All Implemented Interfaces:
HandshakeResponse
public class TyrusUpgradeResponse extends UpgradeResponse
HTTP response representation.- Author:
- Pavel Bucek (pavel.bucek at oracle.com)
-
-
Field Summary
-
Fields inherited from class org.glassfish.tyrus.spi.UpgradeResponse
LOCATION, RETRY_AFTER, TRACING_HEADER_PREFIX, WWW_AUTHENTICATE
-
Fields inherited from interface javax.websocket.HandshakeResponse
SEC_WEBSOCKET_ACCEPT
-
-
Constructor Summary
Constructors Constructor Description TyrusUpgradeResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaders()
Get HTTP headers.java.lang.String
getReasonPhrase()
Get HTTP reason phrase.int
getStatus()
Get HTTP status.void
setReasonPhrase(java.lang.String reasonPhrase)
Set HTTP reason phrase.void
setStatus(int statusCode)
Set HTTP status.-
Methods inherited from class org.glassfish.tyrus.spi.UpgradeResponse
getFirstHeaderValue
-
-
-
-
Method Detail
-
getStatus
public int getStatus()
Get HTTP status.- Specified by:
getStatus
in classUpgradeResponse
- 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 classUpgradeResponse
- Parameters:
statusCode
- status code to be set.
-
setReasonPhrase
public void setReasonPhrase(java.lang.String reasonPhrase)
Set HTTP reason phrase.- Specified by:
setReasonPhrase
in classUpgradeResponse
- Parameters:
reasonPhrase
- reason phrase to be set.
-
-