Invalidation Response Syntax Format of Invalidation Requests for Out-of-Band and ESI Inline Mechanisms

7-10 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache number ADVANCEDSELECTOR URIPREFIX=prefix URIEXP=URL_expression HOST=host_name:port METHOD=HTTP_request_method BODYEXP=HTTP_body COOKIE NAME=cookie_name VALUE=value HEADER NAME=HTTP_request_header VALUE=value OTHER NAME=URI|BODY|QUERYSTRING_PARAMETER|SEARCHKEY TYPE=SUBSTRING|REGEX VALUE=value ADVANCEDSELECTOR INVALIDATIONPREVIEW The body of a valid invalidation preview request must begin with the following: ?xml version=1.0? DOCTYPE INVALIDATIONPREVIEW SYSTEM internal:WCSinvalidation.dtd The first line denotes version 1.0 of XML. The second line denotes the request is an invalidation preview request using the WCSinvalidation.dtd file as the XML document type. The root element INVALIDATIONPREVIEW contains one or more of the attributes described in Table 7–3 . BASICSELECTOR and ADVANCEDSELECTOR are described in Table 7–1 .

7.5.4 Invalidation Preview Response Syntax

Invalidation preview responses for preview requests are returned in the following format: ?xml version=1.0? DOCTYPE INVALIDATIONPREVIEWRESULT SYSTEM internal:WCSinvalidation.dtd INVALIDATIONPREVIEWRESULT VERSION=WCS-1.1 STATUS=status NUMURLS=number TOTALNUMURLS=total_number SELECTURL VALUE=URL SELECTEDURL Table 7–3 INVALIDATIONPREVIEW Attributes Invalidation ElementAttribute Description VERSION attribute Required attribute in the invalidation preview Use VERSION=WCS-1.1 as the version of the WCSinvalidation.dtd file to use as the XML document type. STARTNUM attribute Required attribute in the invalidation preview Enter the number representing the first object to be listed. Oracle Web Cache begins the count of objects with the number 0. MAXNUM attribute Required attribute in the invalidation preview Enter the number of objects to be listed. If fewer objects than the number specified meet the invalidation criteria, Oracle Web Cache lists only the URLs for those objects that meet the criteria. If more objects than the number specified meet the invalidation criteria, Oracle Web Cache lists the URLs for the number of objects requested. It also returns the total number of objects that meet the invalidation criteria. To obtain the list of URLs for addition objects, send another preview request with a different STARTNUM that specifies the start of the next set of objects. Invalidating Content 7-11 INVALIDATIONPREVIEWRESULT The body of a valid invalidation preview response begins with the following: ?xml version=1.0? DOCTYPE INVALIDATIONPREVIEWRESULT SYSTEM internal:WCSinvalidation.dtd The first line denotes version 1.0 of XML. The second line denotes that the response is an invalidation preview response using the WCSinvalidation.dtd file as the XML document type. Note the following: ■ No white space is allowed before ?xml. ■ If an application is sharing invalidation requests with a third-party XML parser, replace internal:WCSinvalidation.dtd with the following path: http:www.oracle.comwebcache90400WCSinvalidation.dtd The root element INVALIDATIONPREVIEWRESULT contains one or more of the attributes and elements described in Table 7–4 . BASICSELECTOR and ADVANCEDSELECTOR are described in Table 7–1 .

7.5.5 Invalidation Examples

This section contains the following invalidation request examples: ■ Section 7.5.5.1, Example: Invalidating One Object ■ Section 7.5.5.2, Example: Invalidating Multiple Objects ■ Section 7.5.5.3, Example: Invalidating a Subtree of Objects ■ Section 7.5.5.4, Example: Invalidating All Objects for a Web Site ■ Section 7.5.5.5, Example: Invalidating Objects Using Prefix Matching ■ Section 7.5.5.6, Example: Invalidating Objects Using Substring and Query String Matching ■ Section 7.5.5.7, Example: Invalidating Objects Using Search Key Matching Table 7–4 INVALIDATIONPREVIEWRESULT Elements and Attributes Invalidation ElementAttribute Description VERSION attribute Version number of the WCSinvalidation.dtd file to use as the XML document type STATUS attribute Status of the preview: ■ SUCCESS for successful invalidations ■ URI NOT CACHEABLE for objects that are not cacheable ■ URI NOT FOUND for objects not found STARTNUM attribute Number representing the first object to be listed NUMURLS attribute Number of URLs returned in this preview result TOTALNUMURLS attribute Number of URLs matching the BASICSELECTOR or ADVANCEDSELECTOR selectors SELECTEDURL element URLs matching the BASICSELECTOR or ADVANCEDSELECTOR selectors to be invalidated