TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LoginRESTService::ContentTypePlugin Struct Reference

Static Public Member Functions

static int32 Init (soap *s, soap_plugin *p, void *)
 
static void Destroy (soap *s, soap_plugin *p)
 
static int32 OnSetHeader (soap *s, char const *key, char const *value)
 

Public Attributes

int32(* fposthdr )(soap *s, char const *key, char const *value)
 
char constContentType
 

Static Public Attributes

static char const *const PluginId = "bnet-content-type"
 

Member Function Documentation

void LoginRESTService::ContentTypePlugin::Destroy ( soap s,
soap_plugin p 
)
static
434 {
435  ContentTypePlugin* data = reinterpret_cast<ContentTypePlugin*>(p->data);
436  s->fposthdr = data->fposthdr;
437  delete data;
438 }
int(* fposthdr)(struct soap *, const char *, const char *)
Definition: stdsoap2.h:1989
void * data
Definition: stdsoap2.h:2253
int32 LoginRESTService::ContentTypePlugin::Init ( soap s,
soap_plugin p,
void *  arg 
)
static
420 {
421  ContentTypePlugin* data = new ContentTypePlugin();
422  data->fposthdr = s->fposthdr;
423  data->ContentType = reinterpret_cast<char const*>(arg);
424 
425  p->id = PluginId;
426  p->fdelete = &Destroy;
427  p->data = data;
428 
429  s->fposthdr = &OnSetHeader;
430  return SOAP_OK;
431 }
static void Destroy(soap *s, soap_plugin *p)
Definition: LoginRESTService.cpp:433
const char * id
Definition: stdsoap2.h:2252
int(* fposthdr)(struct soap *, const char *, const char *)
Definition: stdsoap2.h:1989
static char const *const PluginId
Definition: LoginRESTService.h:87
internal::NamedArg< char > arg(StringRef name, const T &arg)
Definition: format.h:3248
#define SOAP_OK
Definition: stdsoap2.h:1245
void * data
Definition: stdsoap2.h:2253
void(* fdelete)(struct soap *soap, struct soap_plugin *p)
Definition: stdsoap2.h:2255
static int32 OnSetHeader(soap *s, char const *key, char const *value)
Definition: LoginRESTService.cpp:440
#define const
Definition: zconf.h:217

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int32 LoginRESTService::ContentTypePlugin::OnSetHeader ( soap s,
char const key,
char const value 
)
static
441 {
442  ContentTypePlugin* self = reinterpret_cast<ContentTypePlugin*>(soap_lookup_plugin(s, PluginId));
443  if (key && !strcmp("Content-Type", key))
444  value = self->ContentType;
445 
446  return self->fposthdr(s, key, value);
447 }
SOAP_FMAC1 void *SOAP_FMAC2 soap_lookup_plugin(struct soap *soap, const char *id)
Definition: stdsoap2.cpp:16947
static char const *const PluginId
Definition: LoginRESTService.h:87
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

Member Data Documentation

char const* LoginRESTService::ContentTypePlugin::ContentType
int32(* LoginRESTService::ContentTypePlugin::fposthdr)(soap *s, char const *key, char const *value)
char const *const LoginRESTService::ContentTypePlugin::PluginId = "bnet-content-type"
static

The documentation for this struct was generated from the following files: