|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE task |
|
11 PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd"> |
|
12 <task id="GUID-8F5BC47B-0551-5245-A1ED-629380111B43" xml:lang="en"><title>Validating |
|
13 an URI</title><shortdesc>This tutorial describes the steps to validate an URI. </shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody> |
|
14 <steps-unordered> |
|
15 <step id="GUID-FF589874-C69D-49F1-8AF4-9414524E15B4"><cmd/> |
|
16 <info><p>Check the validity of components within an URI using <xref href="GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1.dita#GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1/GUID-9B6C3634-7E19-39B5-A12F-80A16DDCFF4E"><apiname>TUriParser8::Validate()</apiname></xref>. <note>This |
|
17 function validates only SIP and SIPS scheme components. </note> </p></info> |
|
18 <stepxmp><codeblock xml:space="preserve">_LIT8( KUri,"http://web.intra/Dev/Sysdoc/devlib.htm" ); |
|
19 TUriParser8* parser; |
|
20 //validate the parsed URI |
|
21 TInt result = parser->Validate();</codeblock></stepxmp> |
|
22 <stepresult><p><xref href="GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1.dita#GUID-EB2EEEF1-705B-334D-A4B0-3D0C4CBE2DA1/GUID-9B6C3634-7E19-39B5-A12F-80A16DDCFF4E"><apiname>TUriParser8::Validate()</apiname></xref> returns: <ul> |
|
23 <li><p><codeph>KErrNone</codeph>, if the URI is shown as valid. </p></li> |
|
24 <li><p><codeph>KUriUtilsErrInvalidUri</codeph>, if the URI is shown as invalid. </p></li> |
|
25 <li><p><codeph>KErrNotSupported</codeph>, if the URI cannot be shown as valid. </p></li> |
|
26 </ul></p></stepresult> |
|
27 </step> |
|
28 </steps-unordered> |
|
29 </taskbody><related-links> |
|
30 <link href="GUID-795B41AF-FBEA-56CE-AE20-EF17BE754723.dita"><linktext>Http Utilities |
|
31 Library Overview</linktext></link> |
|
32 </related-links></task> |