XRootD
XrdNetPMarkCfg.hh
Go to the documentation of this file.
1
#ifndef __XRDNETPMARKCFG__
2
#define __XRDNETPMARKCFG__
3
/******************************************************************************/
4
/* */
5
/* X r d N e t P M a r k C f g . h h */
6
/* */
7
/* (c) 2021 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/* */
12
/* This file is part of the XRootD software suite. */
13
/* */
14
/* XRootD is free software: you can redistribute it and/or modify it under */
15
/* the terms of the GNU Lesser General Public License as published by the */
16
/* Free Software Foundation, either version 3 of the License, or (at your */
17
/* option) any later version. */
18
/* */
19
/* XRootD is distributed in the hope that it will be useful, but WITHOUT */
20
/* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
21
/* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public */
22
/* License for more details. */
23
/* */
24
/* You should have received a copy of the GNU Lesser General Public License */
25
/* along with XRootD in a file called COPYING.LESSER (LGPL license) and file */
26
/* COPYING (GPL license). If not, see <http://www.gnu.org/licenses/>. */
27
/* */
28
/* The copyright holder's institutional names and contributor's names may not */
29
/* be used to endorse or promote products derived from this software without */
30
/* specific prior written permission of the institution or contributor. */
31
/******************************************************************************/
32
33
class
XrdNetMsg
;
34
class
XrdNetPMark
;
35
class
XrdOucMapP2N;
36
class
XrdOucStream
;
37
class
XrdScheduler
;
38
class
XrdSysError
;
39
class
XrdSysTrace
;
40
41
#include "
XrdNet/XrdNetPMark.hh
"
42
43
class
XrdNetPMarkCfg
:
public
XrdNetPMark
44
{
45
public
:
46
47
XrdNetPMark::Handle
*
Begin
(
XrdSecEntity
&Client,
48
const
char
*path=0,
49
const
char
*cgi=0,
50
const
char
*app=0)
override
;
51
52
XrdNetPMark::Handle
*
Begin
(
XrdNetAddrInfo
&addr,
53
XrdNetPMark::Handle
&handle,
54
const
char
*
tident
)
override
;
55
56
static
XrdNetPMark
*
Config
(
XrdSysError
*
eLog
,
XrdScheduler
*sched,
57
XrdSysTrace
*trc,
bool
&fatal);
58
59
static
int
Parse
(
XrdSysError
*
eLog
,
XrdOucStream
&
Config
);
60
61
XrdNetPMarkCfg
() {}
62
63
64
private
:
65
~
XrdNetPMarkCfg
() {}
66
67
static
bool
ConfigDefs();
68
static
bool
ConfigPV2E(
char
*info);
69
static
bool
ConfigRU2A(
char
*info);
70
static
void
Display();
71
static
72
const
char
*Extract(
const
char
*sVec,
char
*buff,
int
blen);
73
static
bool
FetchFile();
74
static
bool
getCodes(
XrdSecEntity
&client,
const
char
*path,
75
const
char
*cgi,
int
&ecode,
int
&acode);
76
static
bool
LoadFile();
77
static
bool
LoadJson(
char
*buff);
78
};
79
#endif
tident
#define tident
Definition:
XrdBwmHandle.cc:223
XrdNetPMark.hh
XrdNetAddrInfo
Definition:
XrdNetAddrInfo.hh:54
XrdNetMsg
Definition:
XrdNetMsg.hh:50
XrdNetPMarkCfg
Definition:
XrdNetPMarkCfg.hh:44
XrdNetPMarkCfg::Parse
static int Parse(XrdSysError *eLog, XrdOucStream &Config)
Definition:
XrdNetPMarkCfg.cc:948
XrdNetPMarkCfg::Config
static XrdNetPMark * Config(XrdSysError *eLog, XrdScheduler *sched, XrdSysTrace *trc, bool &fatal)
Definition:
XrdNetPMarkCfg.cc:249
XrdNetPMarkCfg::Begin
XrdNetPMark::Handle * Begin(XrdSecEntity &Client, const char *path=0, const char *cgi=0, const char *app=0) override
Definition:
XrdNetPMarkCfg.cc:175
XrdNetPMarkCfg::XrdNetPMarkCfg
XrdNetPMarkCfg()
Definition:
XrdNetPMarkCfg.hh:61
XrdNetPMark::Handle
Definition:
XrdNetPMark.hh:43
XrdNetPMark
Definition:
XrdNetPMark.hh:39
XrdOucStream
Definition:
XrdOucStream.hh:47
XrdScheduler
Definition:
XrdScheduler.hh:46
XrdSecEntity
Definition:
XrdSecEntity.hh:65
XrdSysError
Definition:
XrdSysError.hh:90
XrdSysTrace
Definition:
XrdSysTrace.hh:49
XrdOfsPrepGPIReal::eLog
XrdSysError * eLog
Definition:
XrdOfsPrepGPI.cc:59
XrdNet
XrdNetPMarkCfg.hh
Generated by
1.9.1