williamr@2: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: /** williamr@4: @file williamr@2: @warning : This file contains Rose Model ID comments - please do not delete williamr@2: */ williamr@2: williamr@2: #ifndef __RHTTPREQUEST_H__ williamr@2: #define __RHTTPREQUEST_H__ williamr@2: williamr@2: // System includes williamr@2: #include williamr@2: #include williamr@2: #include williamr@2: williamr@2: williamr@2: //##ModelId=3C4C186E0191 williamr@2: class RHTTPRequest : public RHTTPMessage williamr@2: /** williamr@2: An HTTP Request. This class extends the abstract HTTP Message to add an HTTP williamr@2: method to be invoked on the resource at the remote HTTP server, and the URL that williamr@2: identifies that resource. williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: { williamr@2: public: williamr@2: /** Get Methods williamr@2: Methods for reading information from the response. williamr@2: */ williamr@2: //@{ williamr@4: // Gets the method name williamr@4: // @return The method to be used in the HTTP request. williamr@2: //##ModelId=3C4C186E01B3 williamr@2: IMPORT_C RStringF Method() const; williamr@4: // Gets the URI williamr@4: // @return The URI to be used in the HTTP request. williamr@2: //##ModelId=3C4C186E01B2 williamr@2: IMPORT_C const TUriC8& URI() const; williamr@2: //@} williamr@2: /**Set Methods williamr@2: williamr@2: Methods for setting information. These methods will not be of williamr@2: use to the client; they are intended for the use of advanced williamr@2: filters williamr@2: */ williamr@2: //@{ williamr@4: // Sets the method name williamr@4: // @param aMethod The method name to be used in the HTTP request. williamr@2: //##ModelId=3C4C186E01B0 williamr@2: IMPORT_C void SetMethod(RStringF aMethod); williamr@4: // Sets the URI williamr@4: // @param aURI The URI to be used in the HTTP request. williamr@2: //##ModelId=3C4C186E01A6 williamr@2: IMPORT_C void SetURIL(const TUriC8& aURI); williamr@2: //@} williamr@2: williamr@2: friend class CRequest; williamr@2: }; williamr@2: williamr@2: williamr@2: #endif // __RHTTPREQUEST_H__