io/AbstractXMLObjectMarshaller.cpp \
io/AbstractXMLObjectUnmarshaller.cpp \
io/HTTPRequest.cpp \
+ io/HTTPResponse.cpp \
soap/impl/SOAPClient.cpp \
soap/impl/SOAPImpl.cpp \
soap/impl/SOAPSchemaValidators.cpp \
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
) : m_cipher(NULL), m_credResolver(credResolver), m_criteria(criteria), m_EKResolver(EKResolver) {
}
- ~Decrypter();
+ virtual ~Decrypter();
/**
* Replace the current EncryptedKeyResolver interface, if any, with a new one.
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Encrypter() : m_cipher(NULL) {}
- ~Encrypter();
+ virtual ~Encrypter();
/**
* Encrypts the supplied element and returns the resulting object.
--- /dev/null
+/*
+ * Copyright 2009 Internet2
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * HTTPResponse.cpp
+ *
+ * Interface to HTTP responses.
+ */
+
+#include "internal.h"
+#include "HTTPResponse.h"
+
+using namespace xmltooling;
+
+void HTTPResponse::setCookie(const char* name, const char* value)
+{
+ std::string cookie(name);
+ cookie = cookie + '=' + value;
+ setResponseHeader("Set-Cookie", cookie.c_str());
+}
/*
- * Copyright 2001-2007 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* @file xmltooling/io/HTTPResponse.h
*
- * Interface to HTTP response.
+ * Interface to HTTP responses.
*/
#ifndef __xmltooling_httpres_h__
* @param name cookie name
* @param value value to set, or NULL to clear
*/
- virtual void setCookie(const char* name, const char* value) {
- std::string cookie(name);
- cookie = cookie + '=' + value;
- setResponseHeader("Set-Cookie", cookie.c_str());
- }
+ virtual void setCookie(const char* name, const char* value);
/**
* Redirect the client to the specified URL and complete the response.
RelativePath=".\io\HTTPRequest.cpp"\r
>\r
</File>\r
+ <File\r
+ RelativePath=".\io\HTTPResponse.cpp"\r
+ >\r
+ </File>\r
</Filter>\r
<Filter\r
Name="impl"\r
RelativePath=".\io\HTTPRequest.cpp"\r
>\r
</File>\r
+ <File\r
+ RelativePath=".\io\HTTPResponse.cpp"\r
+ >\r
+ </File>\r
</Filter>\r
<Filter\r
Name="impl"\r