Enumeration parameterNames = (marinerRequestContext != null) ?
marinerRequestContext.getParameterNames() :
httpRequest.getParameterNames();
while (parameterNames.hasMoreElements()) {
final String name = (String) parameterNames.nextElement();
final RequestParameter parameter =
httpFactory.createRequestParameter(name);
final String value = (marinerRequestContext != null) ?
marinerRequestContext.getParameter(name) :
httpRequest.getParameter(name);
parameter.setValue(value);
parameters.add(parameter);
}
// HTTP-Client will only send cookies if a domain and path is supplied.
// Unfortunately when using Netscape cookies, (Version 0), domain