public class TyrusUpgradeResponse extends UpgradeResponse
LOCATION, RETRY_AFTER, TRACING_HEADER_PREFIX, WWW_AUTHENTICATE
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 |
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 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-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.