Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.servlet.http
Class RequestResponseKey

java.lang.Object
  extended by weblogic.servlet.http.RequestResponseKey


public class RequestResponseKey
extends Object

Method Summary
 boolean equals(Object obj)
          Check for the equality of objects
 HttpServletRequest getRequest()
          Get the request object associated with the HTTP request
 HttpServletResponse getResponse()
          Get the response object associated with the HTTP request
 long getTimeout()
          Get the timeout value
 int hashCode()
          Get the hashcode
 boolean isCallDoResponse()
          Indicates if doResponse will be called on servlet instance during notify
 boolean isImmediateSendOnDoRequestFalse()
          Indicates if response will be committed immediately when doRequest() returns false
 boolean isValid()
          Indicates whether this object is valid or not.
 void setCallDoResponse(boolean isCallDoResponse)
          Set to false to prevent doResponse callback on servlet instance
 void setImmediateSendOnDoRequestFalse(boolean isImmediateSendOnDoRequestFalse)
          Set to false to allow any existing servlet filters to finish processing before response is sent when doRequest() returns false;
 void setTimeout(int timeout)
          Set the timeout method in milliseconds

 

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

 

Method Detail

setTimeout

public void setTimeout(int timeout)
Set the timeout method in milliseconds
Parameters:
timeout - - timeout value in milliseconds

getTimeout

public long getTimeout()
Get the timeout value
Returns:
the timeout value in milliseconds

isValid

public boolean isValid()
Indicates whether this object is valid or not. A RequestResponseKey is marked as invalid if a response has been sent.
Returns:
true if valid

setCallDoResponse

public void setCallDoResponse(boolean isCallDoResponse)
Set to false to prevent doResponse callback on servlet instance
Parameters:
isCallDoResponse - flag indicating if doResponse will be called during notify

isCallDoResponse

public boolean isCallDoResponse()
Indicates if doResponse will be called on servlet instance during notify
Returns:
flag indicating if doResponse will be called during notify

setImmediateSendOnDoRequestFalse

public void setImmediateSendOnDoRequestFalse(boolean isImmediateSendOnDoRequestFalse)
Set to false to allow any existing servlet filters to finish processing before response is sent when doRequest() returns false;
Parameters:
isImmediateSendOnDoRequestFalse - flag indicating whether response is immediately sent from AbstractAsyncServlet.doRequest()

isImmediateSendOnDoRequestFalse

public boolean isImmediateSendOnDoRequestFalse()
Indicates if response will be committed immediately when doRequest() returns false
Returns:
flag indicating if response will be immediately committed

getRequest

public HttpServletRequest getRequest()
Get the request object associated with the HTTP request
Returns:
HttpServletRequest associated with the request

getResponse

public HttpServletResponse getResponse()
Get the response object associated with the HTTP request
Returns:
HttpServletResponse associated with the request

hashCode

public int hashCode()
Get the hashcode
Overrides:
hashCode in class Object
Returns:
the hashcode value

equals

public boolean equals(Object obj)
Check for the equality of objects
Overrides:
equals in class Object
Parameters:
obj - - the object to compare this object with
Returns:
true if both the objects are equals

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09