public class OwRequestContext extends Object
Helper for request context handling. An implementation based on ThreadLocal holder, which are needed for multiple/concurrent thread handling like in AJAX/Web 2.0 environments.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwRequestContext() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clear the Request context and all dependent objects references.
|
static javax.servlet.http.HttpServletRequest |
getLocalThreadRequest()
Get the request associated with current thread.
|
static javax.servlet.http.HttpServletResponse |
getLocalThreadResponse()
Get the response associated with current thread.
|
static void |
setLocalThreadRequest(javax.servlet.http.HttpServletRequest request_p)
Set the request associated with current thread.
|
static void |
setLocalThreadResponse(javax.servlet.http.HttpServletResponse response_p)
Set the response associated with current thread.
|
public static void setLocalThreadRequest(javax.servlet.http.HttpServletRequest request_p)
request_p
- - the HttpServletRequest
objectpublic static void setLocalThreadResponse(javax.servlet.http.HttpServletResponse response_p)
response_p
- - the HttpServletResponse
objectpublic static javax.servlet.http.HttpServletRequest getLocalThreadRequest()
HttpServletRequest
objectpublic static javax.servlet.http.HttpServletResponse getLocalThreadResponse()
HttpServletResponse
objectpublic static void clear()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.