public class RESTEasyBindingData extends Object implements SecurityBindingData
Constructor and Description |
---|
RESTEasyBindingData()
Creates a new RESTEasy message.
|
RESTEasyBindingData(Object content)
Creates a new RESTEasy message, given the specified content.
|
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
List<String> values)
Add a HTTP header.
|
void |
addHeader(String name,
String value)
Add a HTTP header.
|
Set<org.switchyard.security.credential.Credential> |
extractCredentials()
Extracts the Credentials from the SecurityBindingData.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders()
Get the HTTP headers map.
|
String |
getOperationName()
Gets the operation name to be invoked.
|
Object[] |
getParameters()
Gets the method parameters as passed from RESTEasy.
|
Principal |
getPrincipal()
Gets the User Principal associated with this request.
|
javax.servlet.ServletRequest |
getServletRequest()
Gets the ServletRequest associated with this request.
|
Integer |
getStatusCode()
Gets the HTTP response status code.
|
Boolean |
isSecured()
Returns a boolean stating if this request was made using a secure channel.
|
void |
setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers)
Set the HTTP headers map.
|
void |
setOperationName(String operationName)
Sets the operation name to be invoked.
|
void |
setParameters(Object[] args)
Sets the method parameters.
|
void |
setPrincipal(Principal principal)
Sets the User Principal associated with this request.
|
void |
setSecured(Boolean secured)
Sets, the boolean, if this request was made through a secure channel or not.
|
void |
setServletRequest(javax.servlet.ServletRequest servletRequest)
Sets the ServletRequest associated with this request.
|
void |
setStatusCode(Integer statusCode)
Sets the HTTP response status code.
|
public RESTEasyBindingData()
public RESTEasyBindingData(Object content)
content
- the specified contentpublic String getOperationName()
public void setOperationName(String operationName)
operationName
- the operations namepublic Object[] getParameters()
public void setParameters(Object[] args)
args
- the method parameterspublic javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
public void setHeaders(javax.ws.rs.core.MultivaluedMap<String,String> headers)
headers
- a Map of headerspublic void addHeader(String name, List<String> values)
name
- the name of the headervalues
- a List of header valuespublic void addHeader(String name, String value)
name
- the name of the headervalue
- a header valuepublic Integer getStatusCode()
public void setStatusCode(Integer statusCode)
statusCode
- the response status codepublic javax.servlet.ServletRequest getServletRequest()
public void setServletRequest(javax.servlet.ServletRequest servletRequest)
servletRequest
- the ServletRequest to setpublic Boolean isSecured()
public void setSecured(Boolean secured)
secured
- the boolean to setpublic Principal getPrincipal()
public void setPrincipal(Principal principal)
principal
- the Principal to setpublic Set<org.switchyard.security.credential.Credential> extractCredentials()
extractCredentials
in interface SecurityBindingData
Copyright © 2013–2019 JBoss by Red Hat. All rights reserved.