| java.lang.Object org.apache.axis2.builder.XFormURLEncodedBuilder
XFormURLEncodedBuilder | public class XFormURLEncodedBuilder implements Builder(Code) | | |
extractParametersUsingHttpLocation | protected String extractParametersUsingHttpLocation(String templatedPath, MultipleEntryHashMap parameterMap, String requestURL, String queryParameterSeparator) throws AxisFault, UnsupportedEncodingException(Code) | | Here is what I will try to do here. I will first try to identify the location of the first
template element in the request URI. I am trying to deduce the location of that location
using the httpLocation element of the binding (it is passed in to this
method).
If there is a contant part in the httpLocation, then I will identify it. For this, I get
the index of {, from httpLocation param, and whatever to the left of it is the contant part.
Then I search for this constant part inside the url. This will give us the access to the first
template parameter.
To find the end of this parameter, we need to get the index of the next constant, from
httpLocation attribute. Likewise we keep on discovering parameters.
Assumptions :
1. User will always append the value of httpLocation to the address given in the
endpoint.
2. I was talking about the constants in the httpLocation. Those constants will not occur,
to a reasonable extend, before the constant we are looking for.
Parameters: templatedPath - Parameters: parameterMap - |
|
|