servicediscoveryandcontrol/pnp/test/upnp/upnpmessage/inc/rrequest.h
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-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 #ifndef __RRequest_H__
       
    17 #define __RRequest_H__ 
       
    18 
       
    19 // System includes
       
    20 #include <uri8.h>
       
    21 #include <stringpool.h>
       
    22 
       
    23 // Local includes
       
    24 #include "rupnpmessage.h"
       
    25 
       
    26 class RRequest : public RUPnPMessage
       
    27 /** 
       
    28 An HTTP Request.  This class extends the abstract HTTP Message to add an HTTP
       
    29 method to be invoked on the resource at the remote HTTP server, and the URL that
       
    30 identifies that resource.
       
    31 @publishedAll
       
    32 @released
       
    33 */
       
    34 	{
       
    35  public:
       
    36 	/** Get Methods
       
    37 		Methods for reading information from the response.
       
    38 	*/
       
    39 	//@{
       
    40 	// Gets the method name
       
    41 	// @return The method to be used in the HTTP request.
       
    42 	IMPORT_C RStringF Method() const;
       
    43 	// Gets the URI
       
    44 	// @return The URI to be used in the HTTP request.
       
    45 	IMPORT_C const TUriC8& URI() const;
       
    46 	/**
       
    47 		Returns ETrue version of HTTP used by the server is 1.0
       
    48 	*/
       
    49 	IMPORT_C TBool IsHTTP10() const;
       
    50 	//@}
       
    51 	/**Set Methods
       
    52 		
       
    53 		Methods for setting information. These methods will not be of
       
    54 		use to the client; they are intended for the use of advanced
       
    55 		filters
       
    56 	*/
       
    57 	//@{
       
    58 	// Sets the method name
       
    59 	// @param aMethod The method name to be used in the HTTP request.
       
    60 	IMPORT_C void  SetMethod(RStringF aMethod);
       
    61 	// Sets the URI
       
    62 	// @param aURI The URI to be used in the HTTP request.
       
    63 	IMPORT_C void SetURIL(const TUriC8& aURI);
       
    64 	// Sets the HTTP version
       
    65 	IMPORT_C void SetVersion(TVersion aVersion);
       
    66 	//@}
       
    67 	friend class CRequest;
       
    68 	};
       
    69 
       
    70 #endif //	__RRequest_H__