Add support for returning 304 responses.
[shibboleth/sp.git] / shibsp / metadata / MetadataProviderCriteria.cpp
1 /*
2  *  Copyright 2001-2009 Internet2
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /**
18  * MetadataProviderCriteria.cpp
19  *
20  * Extended criteria for metadata lookup for Shibboleth-aware metadata providers.
21  */
22
23 #include "internal.h"
24 #include "metadata/MetadataProviderCriteria.h"
25
26 using namespace shibsp;
27 using namespace opensaml::saml2md;
28 using opensaml::SAMLArtifact;
29 using namespace xmltooling;
30
31 MetadataProviderCriteria::MetadataProviderCriteria(const Application& app) : application(app)
32 {
33 }
34
35 MetadataProviderCriteria::MetadataProviderCriteria(
36     const Application& app, const XMLCh* id, const xmltooling::QName* q, const XMLCh* prot, bool valid
37     ) : MetadataProvider::Criteria(id, q, prot, valid), application(app)
38 {
39 }
40
41 MetadataProviderCriteria::MetadataProviderCriteria(
42     const Application& app, const char* id, const xmltooling::QName* q, const XMLCh* prot, bool valid
43     ) : MetadataProvider::Criteria(id, q, prot, valid), application(app)
44 {
45 }
46
47 MetadataProviderCriteria::MetadataProviderCriteria(
48     const Application& app, const SAMLArtifact* a, const xmltooling::QName* q, const XMLCh* prot, bool valid
49     ) : MetadataProvider::Criteria(a, q, prot, valid), application(app)
50 {
51 }
52
53 MetadataProviderCriteria::~MetadataProviderCriteria()
54 {
55 }