Back to index

nordugrid-arc-nox  1.1.0~rc6
GACLRequest.cpp
Go to the documentation of this file.
00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004 
00005 #include <fstream>
00006 #include <iostream>
00007 
00008 #include "GACLRequest.h"
00009 
00011 Arc::Plugin* ArcSec::GACLRequest::get_request(Arc::PluginArgument* arg) {
00012   if(arg==NULL) return NULL;
00013   Arc::ClassLoaderPluginArgument* clarg =
00014           arg?dynamic_cast<Arc::ClassLoaderPluginArgument*>(arg):NULL;
00015   if(!clarg) return NULL;
00016   Arc::XMLNode* xarg = (Arc::XMLNode*)(*clarg);
00017   if(xarg == NULL) return new ArcSec::GACLRequest();
00018   ArcSec::Source source(*xarg);
00019   return new ArcSec::GACLRequest(source);
00020 }
00021 
00022 //loader_descriptors __arc_request_modules__  = {
00023 //    { "gacl.request", 0, &ArcSec::GACLRequest::get_request },
00024 //    { NULL, 0, NULL }
00025 //};
00026 
00027 
00028 using namespace Arc;
00029 using namespace ArcSec;
00030 
00031 GACLRequest::GACLRequest (const Source& req) : Request(req) {
00032   req.Get().New(reqnode);
00033 }
00034 
00035 GACLRequest::GACLRequest () {
00036 }
00037 
00038 GACLRequest::~GACLRequest(){
00039 }