Skip navigation links

Oracle Fusion Middleware Invalidation Java API Reference for Oracle Web Cache
11g Release 1 (11.1.1)

E10665-01


oracle.webcache.invalidation
Class InvalidationResult

java.lang.Object
  extended by oracle.webcache.invalidation.InvalidationResult


public class InvalidationResult
extends java.lang.Object

This class represents the result of sending a Web Cache invalidation message.


Constructor Summary
InvalidationResult(oracle.net.http.HttpResponse response)
          Encapsulates the result of an invalidation request
InvalidationResult(oracle.net.http.HttpResponse response, java.lang.Exception e)
          Encapsulates the result of an invalidation request

 

Method Summary
 boolean exceptionThrown()
          Was an exception thrown:
 long getElapsedTime()
          Return elapsed time (in msecs)
 java.lang.Exception getException()
          Returns exception
 java.util.Enumeration getObjectResults()
          Return ObjectResult sequence.
 java.lang.String getResponseBody()
          Return HTTP response body
 int getResponseCode()
          Return HTTP response code
 java.lang.String getResponseMessage()
          Return HTTP response message
 int getTotalNotCacheable()
          Return total number of "URI NOT CACHEABLE" occurences
 int getTotalNotFound()
          Return total number of "URI NOT FOUND" occurences
 int getTotalNumInv()
          Return total number of invalidated documents
 java.lang.String toString()
          Returns the InvalidationResult document sent by the WebCache
 java.lang.String toString(boolean full)
          Returns the InvalidationResult document sent by the WebCache
 boolean usedProxy()
          Did request go thru a proxy host?
 boolean wasAccepted()
          Was this an HTTP_ACCEPTED response?
 boolean wasOK()
          Was this an HTTP_OK response?

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

InvalidationResult

public InvalidationResult(oracle.net.http.HttpResponse response)
Encapsulates the result of an invalidation request

InvalidationResult

public InvalidationResult(oracle.net.http.HttpResponse response,
                          java.lang.Exception e)
Encapsulates the result of an invalidation request

Method Detail

getElapsedTime

public long getElapsedTime()
Return elapsed time (in msecs)

getTotalNumInv

public int getTotalNumInv()
Return total number of invalidated documents

getTotalNotCacheable

public int getTotalNotCacheable()
Return total number of "URI NOT CACHEABLE" occurences

getTotalNotFound

public int getTotalNotFound()
Return total number of "URI NOT FOUND" occurences

getObjectResults

public java.util.Enumeration getObjectResults()
Return ObjectResult sequence. (This method is not implemented.)

wasOK

public boolean wasOK()
Was this an HTTP_OK response?

wasAccepted

public boolean wasAccepted()
Was this an HTTP_ACCEPTED response?

getResponseBody

public java.lang.String getResponseBody()
Return HTTP response body
Throws:
RunTimeException - if response body is not text

getResponseMessage

public java.lang.String getResponseMessage()
Return HTTP response message

getResponseCode

public int getResponseCode()
Return HTTP response code

exceptionThrown

public boolean exceptionThrown()
Was an exception thrown:

getException

public java.lang.Exception getException()
Returns exception

usedProxy

public boolean usedProxy()
Did request go thru a proxy host?

toString

public java.lang.String toString()
Returns the InvalidationResult document sent by the WebCache
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean full)
Returns the InvalidationResult document sent by the WebCache

Skip navigation links

Oracle Fusion Middleware Invalidation Java API Reference for Oracle Web Cache
11g Release 1 (11.1.1)

E10665-01


Copyright © 2009 Oracle. All Rights Reserved.