|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.commons.evaluators.EvaluatorContext
public class EvaluatorContext
Holds the information about the HTTP request. Created on per request basis and passed to each and every evaluator.
Constructor Summary | |
---|---|
EvaluatorContext(String url,
Map<String,String> headers)
Creates the Evalutor context with the URL and the set of HTTP headers |
Method Summary | |
---|---|
String |
getHeader(String name)
Get the HTTP header value for the Header name |
Map<String,String> |
getHeaders()
Get all the HTTP headers |
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(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EvaluatorContext(String url, Map<String,String> headers)
url
- urlheaders
- HTTP header as a Name, Value mapMethod Detail |
---|
public String getUrl()
public Map<String,String> getHeaders()
public Map<String,String> getParams()
public String getParam(String name) throws UnsupportedEncodingException
name
- name of the parameter
UnsupportedEncodingException
- if cannot decode the URLspublic String getHeader(String name)
name
- name of the header
public MessageContext getMessageContext()
public Object getProperty(String name)
name
- Name of the property
public 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(MessageContext messageContext)
messageContext
- an Axis2 MessageContext objectpublic void setProperties(Map<String,Object> properties)
properties
- a Properties map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |