HTTP Session Management
[API for Backends]


Detailed Description

Functions in this group provide a HTTP session management. This can be used by backends which use the SSL transport protocol.


Session Flags

#define AB_HTTPSESSION_FLAGS_ALLOW_REDIRECT   0x00000001
#define AB_HTTPSESSION_FLAGS_REUSE   0x00000002
#define AB_HTTPSESSION_FLAGS_SECURE_SSL   0x00000004
#define AB_HTTPSESSION_DEFAULT_CONNECT_TIMEOUT   30
#define AB_HTTPSESSION_DEFAULT_TRANSFER_TIMEOUT   60

Constructor/Destructor

AB_HTTPSESSIONAB_HttpSession_new (AB_PROVIDER *pro, AB_USER *u)
void AB_HttpSession_free (AB_HTTPSESSION *hc)

Getters for Related Objects

AB_USERAB_HttpSession_GetUser (const AB_HTTPSESSION *hc)
AB_PROVIDERAB_HttpSession_GetProvider (const AB_HTTPSESSION *hc)

Settings

GWEN_TYPE_UINT32 AB_HttpSession_GetSessionId (const AB_HTTPSESSION *hc)
GWEN_NETLAYER_HTTP_VERSION AB_HttpSession_GetHttpVersion (const AB_HTTPSESSION *hc)
void AB_HttpSession_SetHttpVersion (AB_HTTPSESSION *hc, GWEN_NETLAYER_HTTP_VERSION v)
GWEN_TYPE_UINT32 AB_HttpSession_GetFlags (const AB_HTTPSESSION *hc)
void AB_HttpSession_SetFlags (AB_HTTPSESSION *hc, GWEN_TYPE_UINT32 f)
void AB_HttpSession_AddFlags (AB_HTTPSESSION *hc, GWEN_TYPE_UINT32 f)
void AB_HttpSession_SubFlags (AB_HTTPSESSION *hc, GWEN_TYPE_UINT32 f)
int AB_HttpSession_GetConnectTimeout (const AB_HTTPSESSION *hc)
void AB_HttpSession_SetConnectTimeout (AB_HTTPSESSION *hc, int i)
int AB_HttpSession_GetTransferTimeout (const AB_HTTPSESSION *hc)
void AB_HttpSession_SetTransferTimeout (AB_HTTPSESSION *hc, int i)

Transfer Functions

int AB_HttpSession_Open (AB_HTTPSESSION *hc)
void AB_HttpSession_Close (AB_HTTPSESSION *hc)
int AB_HttpSession_SendRequest (AB_HTTPSESSION *hc, const char *command, const GWEN_URL *url, GWEN_DB_NODE *dbSendHeader, const char *pSendBody, int lSendBody, GWEN_BUFFER *recvBuf)

Typedefs

typedef AB_HTTPSESSION AB_HTTPSESSION


Define Documentation

#define AB_HTTPSESSION_DEFAULT_CONNECT_TIMEOUT   30

Definition at line 40 of file httpsession.h.

#define AB_HTTPSESSION_DEFAULT_TRANSFER_TIMEOUT   60

Definition at line 41 of file httpsession.h.

#define AB_HTTPSESSION_FLAGS_ALLOW_REDIRECT   0x00000001

Definition at line 36 of file httpsession.h.

#define AB_HTTPSESSION_FLAGS_REUSE   0x00000002

Definition at line 37 of file httpsession.h.

#define AB_HTTPSESSION_FLAGS_SECURE_SSL   0x00000004

Definition at line 38 of file httpsession.h.


Typedef Documentation

typedef struct AB_HTTPSESSION AB_HTTPSESSION

Definition at line 46 of file httpsession.h.


Function Documentation

void AB_HttpSession_AddFlags ( AB_HTTPSESSION hc,
GWEN_TYPE_UINT32  f 
)

void AB_HttpSession_Close ( AB_HTTPSESSION hc  ) 

void AB_HttpSession_free ( AB_HTTPSESSION hc  ) 

int AB_HttpSession_GetConnectTimeout ( const AB_HTTPSESSION hc  ) 

GWEN_TYPE_UINT32 AB_HttpSession_GetFlags ( const AB_HTTPSESSION hc  ) 

GWEN_NETLAYER_HTTP_VERSION AB_HttpSession_GetHttpVersion ( const AB_HTTPSESSION hc  ) 

AB_PROVIDER* AB_HttpSession_GetProvider ( const AB_HTTPSESSION hc  ) 

GWEN_TYPE_UINT32 AB_HttpSession_GetSessionId ( const AB_HTTPSESSION hc  ) 

int AB_HttpSession_GetTransferTimeout ( const AB_HTTPSESSION hc  ) 

AB_USER* AB_HttpSession_GetUser ( const AB_HTTPSESSION hc  ) 

AB_HTTPSESSION* AB_HttpSession_new ( AB_PROVIDER pro,
AB_USER u 
)

int AB_HttpSession_Open ( AB_HTTPSESSION hc  ) 

int AB_HttpSession_SendRequest ( AB_HTTPSESSION hc,
const char *  command,
const GWEN_URL *  url,
GWEN_DB_NODE *  dbSendHeader,
const char *  pSendBody,
int  lSendBody,
GWEN_BUFFER *  recvBuf 
)

void AB_HttpSession_SetConnectTimeout ( AB_HTTPSESSION hc,
int  i 
)

void AB_HttpSession_SetFlags ( AB_HTTPSESSION hc,
GWEN_TYPE_UINT32  f 
)

void AB_HttpSession_SetHttpVersion ( AB_HTTPSESSION hc,
GWEN_NETLAYER_HTTP_VERSION  v 
)

void AB_HttpSession_SetTransferTimeout ( AB_HTTPSESSION hc,
int  i 
)

void AB_HttpSession_SubFlags ( AB_HTTPSESSION hc,
GWEN_TYPE_UINT32  f 
)


Generated on Wed Oct 18 16:17:28 2006 for aqbanking by  doxygen 1.4.7