|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @warning : This file contains Rose Model ID comments - please do not delete |
|
19 */ |
|
20 |
|
21 #ifndef __RHTTPREQUEST_H__ |
|
22 #define __RHTTPREQUEST_H__ |
|
23 |
|
24 // System includes |
|
25 #include <uri8.h> |
|
26 #include <stringpool.h> |
|
27 #include <http/rhttpmessage.h> |
|
28 |
|
29 |
|
30 //##ModelId=3C4C186E0191 |
|
31 class RHTTPRequest : public RHTTPMessage |
|
32 /** |
|
33 An HTTP Request. This class extends the abstract HTTP Message to add an HTTP |
|
34 method to be invoked on the resource at the remote HTTP server, and the URL that |
|
35 identifies that resource. |
|
36 @publishedAll |
|
37 @released |
|
38 */ |
|
39 { |
|
40 public: |
|
41 /** Get Methods |
|
42 Methods for reading information from the response. |
|
43 */ |
|
44 //@{ |
|
45 // Gets the method name |
|
46 // @return The method to be used in the HTTP request. |
|
47 //##ModelId=3C4C186E01B3 |
|
48 IMPORT_C RStringF Method() const; |
|
49 // Gets the URI |
|
50 // @return The URI to be used in the HTTP request. |
|
51 //##ModelId=3C4C186E01B2 |
|
52 IMPORT_C const TUriC8& URI() const; |
|
53 //@} |
|
54 /**Set Methods |
|
55 |
|
56 Methods for setting information. These methods will not be of |
|
57 use to the client; they are intended for the use of advanced |
|
58 filters |
|
59 */ |
|
60 //@{ |
|
61 // Sets the method name |
|
62 // @param aMethod The method name to be used in the HTTP request. |
|
63 //##ModelId=3C4C186E01B0 |
|
64 IMPORT_C void SetMethod(RStringF aMethod); |
|
65 // Sets the URI |
|
66 // @param aURI The URI to be used in the HTTP request. |
|
67 //##ModelId=3C4C186E01A6 |
|
68 IMPORT_C void SetURIL(const TUriC8& aURI); |
|
69 //@} |
|
70 |
|
71 friend class CRequest; |
|
72 }; |
|
73 |
|
74 |
|
75 #endif // __RHTTPREQUEST_H__ |