public class EvaluatorContext extends Object
Constructor and Description |
---|
EvaluatorContext(String url,
Map<String,String> headers)
Creates the Evalutor context with the URL and the set of HTTP headers
|
Modifier and Type | Method and Description |
---|---|
String |
getHeader(String name)
Get the HTTP header value for the Header name
|
Map<String,String> |
getHeaders()
Get all the HTTP headers
|
org.apache.axis2.context.MessageContext |
getMessageContext()
Get the message context associated with this evaluator context
|
String |
getParam(String name)
Return the value of a HTTP parameter
|
Map<String,String> |
getParams()
Get all the HTTP parameters
|
Object |
getProperty(String name)
Get the value of the named property
|
String |
getUrl()
Get the complete URL
|
void |
setHeaders(Map<String,String> headers)
Set the headers
|
void |
setMessageContext(org.apache.axis2.context.MessageContext messageContext)
Set the current Axis2 MessageContext to this evaluator context
|
void |
setParams(Map<String,String> params)
Set all the HTTP URL parameters
|
void |
setProperties(Map<String,Object> properties)
Associate a set of properties with this evaluator context
|
void |
setUrl(String url)
Set the URL
|
public String getUrl()
public Map<String,String> getHeaders()
public Map<String,String> getParams()
public String getParam(String name) throws UnsupportedEncodingException
name
- name of the parameterUnsupportedEncodingException
- if cannot decode the URLspublic String getHeader(String name)
name
- name of the headerpublic org.apache.axis2.context.MessageContext getMessageContext()
public Object getProperty(String name)
name
- Name of the propertypublic void setUrl(String url)
url
- to be setpublic void setHeaders(Map<String,String> headers)
headers
- as a HeaderName, HeaderValue pair mappublic void setParams(Map<String,String> params)
params
- as a ParameterName, ParameterValue pair mappublic void setMessageContext(org.apache.axis2.context.MessageContext messageContext)
messageContext
- an Axis2 MessageContext objectCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.