⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wap.int

📁 boomerang library 5.11 internet ed
💻 INT
📖 第 1 页 / 共 2 页
字号:
unit Wap;

interface
uses
  Classes, SysUtils, Connect, Contnrs;

const
  TOKEN_SWITCH_PAGE = $00; // Change the code page for the current token state. Followed by a single u_int8 indicating the new code page number.
  TOKEN_END = $1; // Indicates the end of an attribute list or the end of an element.
  TOKEN_ENTITY = $2; // A character entity. Followed by a mb_u_int32 encoding the character entity number.
  TOKEN_STR_I = $3; // Inline string. Followed by a termstr.
  TOKEN_LITERAL = $4; // An unknown attribute name, or unknown tag posessing no attributes or content.Followed by a mb_u_int32 that encodes an offset into the string table.
  TOKEN_EXT_I_0 = $40; // Inline string document-type-specific extension token. Token is followed by a termstr.
  TOKEN_EXT_I_1 = $41; // Inline string document-type-specific extension token. Token is followed by a termstr.
  TOKEN_EXT_I_2 = $42; // Inline string document-type-specific extension token. Token is followed by a termstr.
  TOKEN_PI = $43; // Processing instruction.
  TOKEN_LITERAL_C = $44; // An unknown tag posessing content but no attributes.
  TOKEN_EXT_T_0 = $80; // Inline integer document-type-specific extension token. Token is followed by a mb_u_int32.
  TOKEN_EXT_T_1 = $81; // Inline integer document-type-specific extension token. Token is followed by a mb_u_int32.
  TOKEN_EXT_T_2 = $82; // Inline integer document-type-specific extension token. Token is followed by a mb_u_int32.
  TOKEN_STR_T = $83; //  String table reference. Followed by a mb_u_int32 encoding a byte offset from the beginning of the string table.
  TOKEN_LITERAL_A = $84; // An unknown tag posessing attributes but no content.
  TOKEN_EXT_0 = $C0; // Single -byte document-type-specific extension token.
  TOKEN_EXT_1 = $C1; // Single -byte document-type-specific extension token.
  TOKEN_EXT_2 = $C2; // Single -byte document-type-specific extension token.
  TOKEN_OPAQUE = $C3; // Opaque document-type-specific data.
  TOKEN_LITERAL_AC = $C4; // An unknown tag posessing both attributes and content.

//<?xml version="1.0" ?>'
{ OMNA WSP Content Type Numbers
    0x00 to 0xFF          Well-Known values, named in the WSP specification
    0x0100 to 0xFFFF      Reserved values, listed below. Must be IANA-registered before assigned a number.
    0x010000 to 0xFFFFFF  Experimental
}
type
  TMultiByte = LongWord;

  TWAPEnumeration = record
    Id: TMultiByte;
    Text: string;
    Ver: Byte;
  end;

  TWBXMLTagSpaceEnumeration = record
    Id: Byte;
    Name: string;
    CodeSpace: Byte;
  end;

  TWBXMLAttribSpaceEnumeration = record
    Id: Byte;
    Name: string;
    ValuePrefix: WideString;
    Options: Integer;
    CodeSpace: Byte;
  end;

  TWBXMLValueSpaceEnumeration = record
    Id: Byte;
    Value: WideString;
    CodeSpace: Byte;
  end;

  TWBXMLTagSpaceEnumerationOpenArray = array [0..255] of TWBXMLTagSpaceEnumeration;
  TWBXMLAttribSpaceEnumerationOpenArray = array [0..255] of TWBXMLAttribSpaceEnumeration;
  TWBXMLValueSpaceEnumerationOpenArray = array [0..255] of TWBXMLValueSpaceEnumeration;


const
  WSPContentTypes: array [1..93] of TWAPEnumeration = (
    (Id:$00; Text:'*/*'; Ver: $11),
    (Id:$01; Text:'text/*'; Ver:$11),
    (Id:$02; Text:'text/html'; Ver:$11),
    (Id:$03; Text:'text/plain'; Ver:$11),
    (Id:$04; Text:'text/x-hdml'; Ver:$11),
    (Id:$05; Text:'text/x-ttml'; Ver:$11),
    (Id:$06; Text:'text/x-vCalendar'; Ver:$11),
    (Id:$07; Text:'text/x-vCard'; Ver:$11),
    (Id:$08; Text:'text/vnd.wap.wml'; Ver:$11),
    (Id:$09; Text:'text/vnd.wap.wmlscript'; Ver:$11),
    (Id:$0A; Text:'text/vnd.wap.wta-event'; Ver:$11),
    (Id:$0B; Text:'multipart/*'; Ver:$11),
    (Id:$0C; Text:'multipart/mixed'; Ver:$11),
    (Id:$0D; Text:'multipart/form-data'; Ver:$11),
    (Id:$0E; Text:'multipart/byterantes'; Ver:$11),
    (Id:$0F; Text:'multipart/alternative'; Ver:$11),
    (Id:$10; Text:'application/*'; Ver:$11),
    (Id:$11; Text:'application/java-vm'; Ver:$11),
    (Id:$12; Text:'application/x-www-form-urlencoded'; Ver:$11),
    (Id:$13; Text:'application/x-hdmlc'; Ver:$11),
    (Id:$14; Text:'application/vnd.wap.wmlc'; Ver:$11),
    (Id:$15; Text:'application/vnd.wap.wmlscriptc'; Ver:$11),
    (Id:$16; Text:'application/vnd.wap.wta-eventc'; Ver:$11),
    (Id:$17; Text:'application/vnd.wap.uaprof'; Ver:$11),
    (Id:$18; Text:'application/vnd.wap.wtls-ca-certificate'; Ver:$11),
    (Id:$19; Text:'application/vnd.wap.wtls-user-certificate'; Ver:$11),
    (Id:$1A; Text:'application/x-x509-ca-cert'; Ver:$11),
    (Id:$1B; Text:'application/x-x509-user-cert'; Ver:$11),
    (Id:$1C; Text:'image/*'; Ver:$11),
    (Id:$1D; Text:'image/gif'; Ver:$11),
    (Id:$1E; Text:'image/jpeg'; Ver:$11),
    (Id:$1F; Text:'image/tiff'; Ver:$11),
    (Id:$20; Text:'image/png'; Ver:$11),
    (Id:$21; Text:'image/vnd.wap.wbmp'; Ver:$11),
    (Id:$22; Text:'application/vnd.wap.multipart.*'; Ver:$11),
    (Id:$23; Text:'application/vnd.wap.multipart.mixed'; Ver:$11),
    (Id:$24; Text:'application/vnd.wap.multipart.form-data'; Ver:$11),
    (Id:$25; Text:'application/vnd.wap.multipart.byteranges'; Ver:$11),
    (Id:$26; Text:'application/vnd.wap.multipart.alternative'; Ver:$11),
    (Id:$27; Text:'application/xml'; Ver:$11),
    (Id:$28; Text:'text/xml'; Ver:$11),
    (Id:$29; Text:'application/vnd.wap.wbxml'; Ver:$11),
    (Id:$2A; Text:'application/x-x968-cross-cert'; Ver:$11),
    (Id:$2B; Text:'application/x-x968-ca-cert'; Ver:$11),
    (Id:$2C; Text:'application/x-x968-user-cert'; Ver:$11),
    (Id:$2D; Text:'text/vnd.wap.si'; Ver:$11),
    (Id:$2E; Text:'application/vnd.wap.sic'; Ver:$12),
    (Id:$2F; Text:'text/vnd.wap.sl'; Ver:$12),
    (Id:$30; Text:'application/vnd.wap.slc'; Ver:$12),
    (Id:$31; Text:'text/vnd.wap.co'; Ver:$12),
    (Id:$32; Text:'application/vnd.wap.coc'; Ver:$12),
    (Id:$33; Text:'application/vnd.wap.multipart.related'; Ver:$12),
    (Id:$34; Text:'application/vnd.wap.sia'; Ver:$12),
    (Id:$35; Text:'text/vnd.wap.connectivity-xml'; Ver:$13),
    (Id:$36; Text:'application/vnd.wap.connectivity-wbxml'; Ver:$13),
    (Id:$37; Text:'application/pkcs7-mime'; Ver:$14),
    (Id:$38; Text:'application/vnd.wap.hashed-certificate'; Ver:$14),
    (Id:$39; Text:'application/vnd.wap.signed-certificate'; Ver:$14),
    (Id:$3A; Text:'application/vnd.wap.cert-response'; Ver:$14),
    (Id:$3B; Text:'application/xhtml+xml'; Ver:$14),
    (Id:$3C; Text:'application/wml+xml'; Ver:$14),
    (Id:$3D; Text:'text/css'; Ver:$14),
    (Id:$3E; Text:'application/vnd.wap.mms-message'; Ver:$14),
    (Id:$3F; Text:'application/vnd.wap.rollover-certificate'; Ver:$14),
    (Id:$40; Text:'application/vnd.wap.locc+wbxml'; Ver:$15),
    (Id:$41; Text:'application/vnd.wap.loc+xml'; Ver:$15),
    (Id:$42; Text:'application/vnd.syncml.dm+wbxml'; Ver:$15),
    (Id:$43; Text:'application/vnd.syncml.dm+xml'; Ver:$15),
    (Id:$44; Text:'application/vnd.syncml.notification'; Ver:$15),
    (Id:$45; Text:'application/vnd.wap.xhtml+xml'; Ver:$15),
    (Id:$46; Text:'application/vnd.wv.csp.cir'; Ver:$15),
    (Id:$47; Text:'application/vnd.oma.dd+xml'; Ver:$15),
    (Id:$48; Text:'application/vnd.oma.drm.message'; Ver:$15),
    (Id:$49; Text:'application/vnd.oma.drm.content'; Ver:$15),
    (Id:$4A; Text:'application/vnd.oma.drm.rights+xml'; Ver:$15),
    (Id:$4B; Text:'application/vnd.oma.drm.rights+wbxml'; Ver:$15),
    (Id:$4C; Text:'application/vnd.wv.csp+xml'; Ver:$15),
    (Id:$4D; Text:'application/vnd.wv.csp+wbxml'; Ver:$15),
    (Id:$4E; Text:'application/vnd.syncml.ds.notification'; Ver:$15),

    (Id:$0201; Text:'application/vnd.uplanet.cacheop-wbxml'),
    (Id:$0202; Text:'application/vnd.uplanet.signal'),
    (Id:$0203; Text:'application/vnd.uplanet.alert-wbxml'),
    (Id:$0204; Text:'application/vnd.uplanet.list-wbxml'),
    (Id:$0205; Text:'application/vnd.uplanet.listcmd-wbxml'),
    (Id:$0206; Text:'application/vnd.uplanet.channel-wbxml'),
    (Id:$0207; Text:'application/vnd.uplanet.provisioning-status-uri'),
    (Id:$0208; Text:'x-wap.multipart/vnd.uplanet.header-set'),
    (Id:$0209; Text:'application/vnd.uplanet.bearer-choice-wbxml'),
    (Id:$020A; Text:'application/vnd.phonecom.mmc-wbxml'),
    (Id:$020B; Text:'application/vnd.nokia.syncset+wbxml'), // Contains data synchronisation settings
    (Id:$020C; Text:'image/x-up-wpng'),                     // Optimisation of PNG for wireless devices
    (Id:$0300; Text:'application/iota.mmc-wbxml'),          // 3GPP2 IP-Based Over-the-Air Activation (IOTA) protocol content that is exchanged with the mobile device to read/write arbitrary parameters for remote device management
    (Id:$0301; Text:'application/iota.mmc-xml')            // 3GPP2 IP-Based Over-the-Air Activation (IOTA) protocol content that is exchanged with the mobile device to read/write arbitrary parameters for remote device management
  );

{ OMNA WSP Header Parameters
    0x00 to 0xFF  Well-Known values, named in the WSP specification.
    0x0100 to 0xFFFF  Registered values, listed below.
    0x010000 to 0xFFFFFF  Experimental values, may be used at will. Registered by OMNA only for advisory purposes.
}
  WSPHeaderParameters: array [1..9] of TWAPEnumeration = (
    (Id:$00; Text:'Q'),       // Q-Value - [WSP:8.4.2.3]
    (Id:$01; Text:'Qcharset'),// Well-known charset [WSP:8.2.4.8]
    (Id:$02; Text:'level'),   // Version-value [WSP:8.4.2.3]
    (Id:$03; Text:'type'),    // Integer-value [WSP:8.4.2.3]
    (Id:$04; Text:'uaprof'),  // Untyped-value [WSP:8.4.2.4]
    (Id:$05; Text:'name'),    // Text-string [WSP:8.4.2.1]
    (Id:$06; Text:'filename'),// Text-string [WSP:8.4.2.1]
    (Id:$07; Text:'differences'),// Field-name [WSP:8.2.4.6]
    (Id:$08; Text:'padding')   // Short-integer [WSP:8.4.2.1]
  );

{ OMNA WTP Option TPI Numbers
0x00 to 0x7F  Well-Known values are set as specified by the specification group processes.
0x80 to 0xDF Reserved values, registered and managed by OMNA.
0xE0 to 0xFF Experimental values, registered by OMNA only for advisory purposes
}
  TWTPOptionTPINames: array[1..3] of TWAPEnumeration = (
    (Id:$01; Text:'Maximum Receive Unit'), // This parameter is used by the Initiator to advertise the maximum unit of data in bytes that can be received in the result. See [WTP:9.4.4]
    (Id:$02; Text:'Total Message Size'),   // This parameter can be sent in the first packet of a segmented message to inform the receiver about the total message size in bytes. See [WTP:9.4.4]
    (Id:$03; Text:'Delay Transmission')    // This parameter can be sent in the Ack PDU when a packet group is acknowledged.The receiver MUST NOT send the next packet group until the specified time has elapsed. The time is in 1/10 seconds. See [WTP:9.4.4]
  );

{ OMNA WBXML Public Document IDs
0x00 to 0x7F  Well-Known values are set as specified by the OMA MAG/MAE group processes.
0x80 to 0x3FFF Reserved values, registered and managed by OMNA.
0x4000 to 0x1FFFFF Experimental values, registered by OMNA only for advisory purposes
}
  WBXMLPublicDocumentIds: array[1..32] of TWAPEnumeration = (
//    (Id:$00; Text:''),  // String table index follows; public identifier is encoded as a literal in the string table.
    (Id:$01; Text:''),   // Unknown or missing public identifier.
    (Id:$02; Text:'-//WAPFORUM//DTD WML 1.0//EN'),   // WML 1.0
    (Id:$03; Text:'-//WAPFORUM//DTD WTA 1.0//EN'),   // DEPRECATED - WTA Event 1.0
    (Id:$04; Text:'-//WAPFORUM//DTD WML 1.1//EN'),   // WML 1.1
    (Id:$05; Text:'-//WAPFORUM//DTD SI 1.0//EN'),  //  Service Indication 1.0
    (Id:$06; Text:'-//WAPFORUM//DTD SL 1.0//EN'),  //  Service Loading 1.0
    (Id:$07; Text:'-//WAPFORUM//DTD CO 1.0//EN'),  //  Cache Operation 1.0
    (Id:$08; Text:'-//WAPFORUM//DTD CHANNEL 1.1//EN'),  //  Channel 1.1
    (Id:$09; Text:'-//WAPFORUM//DTD WML 1.2//EN'),  //  WML 1.2
    (Id:$0A; Text:'-//WAPFORUM//DTD WML 1.3//EN'),  //  WML 1.3
    (Id:$0B; Text:'-//WAPFORUM//DTD PROV 1.0//EN'),  //  Provisioning 1.0
    (Id:$0C; Text:'-//WAPFORUM//DTD WTA-WML 1.2//EN'),  //  WTA-WML 1.2
    (Id:$0D; Text:'-//WAPFORUM//DTD EMN 1.0//EN'),  //  Email Notification 1.0 WAP-297
    (Id:$0E; Text:'-//OMA//DTD DRMREL 1.0//EN'),  //  DRM REL 1.0
    (Id:$0F; Text:'-//WIRELESSVILLAGE//DTD CSP 1.0//EN'),  //  Wireless Village CSP DTD v1.0
    (Id:$10; Text:'-//WIRELESSVILLAGE//DTD CSP 1.1//EN'),  //  Wireless Village CSP DTD v1.1

    (Id:$1100; Text:'-//PHONE.COM//DTD ALERT 1.0//EN'),  //  Matthieu Lachance  intended to inform users of events that may be of relevance to them.
    (Id:$1101; Text:'-//PHONE.COM//DTD CACHE-OPERATION 1.0//EN'),  //  Matthieu Lachance  to perform user-agent cache invalidation operation.
    (Id:$1102; Text:'-//PHONE.COM//DTD SIGNAL 1.0//EN'),  //  Matthieu Lachance  to indicate the presence of a pending notifications to be retrieved.
    (Id:$1103; Text:'-//PHONE.COM//DTD LIST 1.0//EN'),  //  Matthieu Lachance  specifies a List Resource.
    (Id:$1104; Text:'-//PHONE.COM//DTD LISTCMD 1.0//EN'),  //  Matthieu Lachance  command to manipulate the content of a list.
    (Id:$1105; Text:'-//PHONE.COM//DTD CHANNEL 1.0//EN'),  //  Matthieu Lachance  specifies a collection of resources that are to be pre-loaded into and made persistent in the user agent cache.
    (Id:$1106; Text:'-//PHONE.COM//DTD MMC 1.0//EN'),  //  Matthieu Lachance  to read/write arbitrary parameter from/to a device.
    (Id:$1107; Text:'-//PHONE.COM//DTD BEARER-CHOICE 1.0//EN'),  //  Matthieu Lachance  specifies the bearer selection preference.
    (Id:$1108; Text:'-//PHONE.COM//DTD WML 1.1//EN'),  //  Matthieu Lachance  defines the Phone.com WML extensions.
    (Id:$1109; Text:'-//PHONE.COM//DTD CHANNEL 1.1//EN'),  //  Matthieu Lachance  collection of resources that are to be pre-loaded into and made persistent in the user agent cache.
    (Id:$110A; Text:'-//PHONE.COM//DTD LIST 1.1//EN'),  //  Matthieu Lachance  specifies a List Resource.
    (Id:$110B; Text:'-//PHONE.COM//DTD LISTCMD 1.1//EN'),  //  Matthieu Lachance  specifies a command to manipulate the content of a list.
    (Id:$110C; Text:'-//PHONE.COM//DTD MMC 1.1//EN'),  //  Matthieu Lachance
    (Id:$110D; Text:'-//PHONE.COM//DTD WML 1.3//EN'),  //  Matthieu Lachance
    (Id:$110E; Text:'-//PHONE.COM//DTD MMC 2.0//EN'),  //  Soma S Santhiveeran  Openwave IP-based Over-the-Air-Activation (IOTA) v2.0 protocol document that is exchanged with the mobile device to read/write arbitrary parameters.
    (Id:$1200; Text:'-//3GPP2.COM//DTD IOTA 1.0//EN')   //  Soma S Santhiveeran  3GPP2 IP-based Over-the-Air Activation (IOTA) v1.0 protocol document that is exchanged with the mobile device to read/write arbitrary parameters.
  );

{ OMNA WMLScript Library IDs
0x00 to 0x7F  Well-Known values are set as specified by the specification group processes.
0x80 to 0x3FFF Reserved values, registered and managed by OMNA.
0x4000 to 0x1FFFFF Experimental values, registered by OMNA only for advisory purposes
}
  WMLScriptLibraryIDs: array[1..8] of TWAPEnumeration = (
    (Id:$00; Text:'Lang'), //   [WMLSLib:7]
    (Id:$01; Text:'Float'), //   [WMLSLib:8]
    (Id:$02; Text:'String'), //   [WMLSLib:9]
    (Id:$03; Text:'URL'), //   [WMLSLib:10]
    (Id:$04; Text:'WMLBrowser'), //   [WMLSLib:11]
    (Id:$05; Text:'Dialogs'), //   [WMLSLib:12]
    (Id:$06; Text:'Crypto'), //   [WMLSLib:13]
    (Id:$07; Text:'EFI')  //   [WMLSLib:14]
  );

{   OMNA PUSH Application ID
0x0000 to 0x7FFF  Well-Known values are set as specified by the OMA working group processes. The application as represented by the URI must be defined in an associated OMA specification. URNs are required for URI and NID in URN [ rfc2141 ] MUST be "x-wap-application".
0x8000 to 0xFF000000 Reserved values, registered and managed by OMNA. URN with NID "x-wap-application" cannot be used.
0x4000 to 0x1FFFFF Experimental values, registered by OMNA only for advisory purposes. URIs in the Well-Known and Reserved categories SHOULD NOT be used.
}

  OMNAPushApplicationIDs: array[1..29] of TWAPEnumeration = (
    (Id:$00; Text:'x-wap-application:*'), // Any Application
    (Id:$01; Text:'x-wap-application:push.sia'), //   WAP Push SIA
    (Id:$02; Text:'x-wap-application:wml.ua'), //   WML User Agent
    (Id:$03; Text:'x-wap-application:wta.ua'), //   WTA User Agent
    (Id:$04; Text:'x-wap-application:mms.ua'), //   This ID will used for application dispatching to MMS User Agent in the handling of MMS notfication using WAP Push. See WAP-206-MMSCTR for more detail.
    (Id:$05; Text:'x-wap-application:push.syncml'), //   SyncML PUSH Application ID: used to push a SyncML Alert from a SyncML server side. The SyncML Alert is an indication for starting a SyncML session e.g., for data synchronization. Requested by the WAP WAG Synchronisation Drafting Committee.
    (Id:$06; Text:'x-wap-application:loc.ua'), //   This ID is used for application dispatching to Location User Agent in the handling of Location Invocation document. See WAP-257-LOCPROT for details. Requested by the WAP WAG Location Drafting Committee.
    (Id:$07; Text:'x-wap-application:syncml.dm'), //   This ID is used for SyncML Device Management. Requested by the SyncML Device Management Expert Group.
    (Id:$08; Text:'x-wap-application:drm.ua'), //   This ID is used for DRM User Agent. Requested by the WAP WAG Download DC.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -