public class TyrusUpgradeResponse extends UpgradeResponse
SEC_WEBSOCKET_ACCEPT
Constructor and Description |
---|
TyrusUpgradeResponse() |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
getHeaders()
Get HTTP headers.
|
String |
getReasonPhrase()
Get HTTP reason phrase.
|
int |
getStatus()
Get HTTP status.
|
void |
setHeader(String name,
String value)
Sets a response header with the given name and value.
|
void |
setReasonPhrase(String reasonPhrase)
Set HTTP reason phrase.
|
void |
setStatus(int statusCode)
Set HTTP status.
|
getFirstHeaderValue
public int getStatus()
getStatus
in class UpgradeResponse
public String getReasonPhrase()
public void setHeader(String name, String value)
UpgradeResponse
setHeader
in class UpgradeResponse
name
- the name of the header.value
- the header value If it contains octet string,
it should be encoded according to RFC 2047
(http://www.ietf.org/rfc/rfc2047.txt).public void setStatus(int statusCode)
setStatus
in class UpgradeResponse
statusCode
- status code to be set.public void setReasonPhrase(String reasonPhrase)
setReasonPhrase
in class UpgradeResponse
reasonPhrase
- reason phrase to be set.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.