]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_cors_s3.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
8 * This is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License version 2.1, as published by the Free Software
11 * Foundation. See file COPYING.
15 #ifndef CEPH_RGW_CORS_S3_H
16 #define CEPH_RGW_CORS_S3_H
22 #include <include/types.h>
23 #include <common/Formatter.h>
27 class RGWCORSRule_S3
: public RGWCORSRule
, public XMLObj
31 ~RGWCORSRule_S3() override
{}
33 bool xml_end(const char *el
) override
;
34 void to_xml(XMLFormatter
& f
);
37 class RGWCORSConfiguration_S3
: public RGWCORSConfiguration
, public XMLObj
40 RGWCORSConfiguration_S3() {}
41 ~RGWCORSConfiguration_S3() override
{}
43 bool xml_end(const char *el
) override
;
44 void to_xml(ostream
& out
);
47 class RGWCORSXMLParser_S3
: public RGWXMLParser
51 XMLObj
*alloc_obj(const char *el
) override
;
53 explicit RGWCORSXMLParser_S3(CephContext
*_cct
) : cct(_cct
) {}
55 #endif /*CEPH_RGW_CORS_S3_H*/