Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
HttpParameterIterator Struct Reference

The HttpParameterIterator is used for iterating through the form elements parsed by the HttpServer object. More...

#include <HttpServer.h>

Public Member Functions

 HttpParameterIterator (HttpRequest *req)
 This HttpParameterIterator constructor takes a HttpRequest object as argument. More...
 
 HttpParameterIterator (HttpParameter *param)
 This HttpParameterIterator constructor takes a HttpParameter object as argument. More...
 
void nextElement ()
 Advance to the next element. More...
 
bool hasMoreElements ()
 Returns true if more elements. More...
 
const char * getName () const
 Return the borrowed current name, or NULL at the end. More...
 
const char * getValue () const
 Return the borrowed current value, or NULL at the end. More...
 

Usage and lifecycle

The HttpParameterIterator is used for iterating through the form elements parsed by the HttpServer object.

C++ Example:

for( ; i.hasMoreElements() ; i.nextElement())
{
if( ! strcmp(i.getName(), "visa number") )
visaNumber = i.getValue();
}
The HttpParameterIterator is used for iterating through the form elements parsed by the HttpServer ob...
Definition: HttpServer.h:484

C Example: See HttpParameter.

See also
HttpRequest::getParameter HttpParameter

Member Function Documentation

◆ getName()

const char * HttpParameterIterator::getName ( ) const

Return the borrowed current name, or NULL at the end.

Returns
The borrowed current name, or NULL at the end.

◆ getValue()

const char * HttpParameterIterator::getValue ( ) const

Return the borrowed current value, or NULL at the end.

Returns
The borrowed current value, or NULL at the end.