Compiere 3.1

org.compiere.util
Class WebSessionCtx

java.lang.Object
  extended by org.compiere.util.WebSessionCtx
All Implemented Interfaces:
Serializable

public class WebSessionCtx
extends Object
implements Serializable

Web Session Context Value Object

Version:
$Id: WebSessionCtx.java,v 1.6 2006/09/23 11:04:19 comdivision Exp $
Author:
Jorg Janke
See Also:
Serialized Form

Field Summary
 DecimalFormat amountFormat
          Localized Amount format
 int counter
          Instance Counter
 Ctx ctx
          Session Context
static String CTX_DOCUMENT_DIR
          Document Directory
static String CTX_SERVER_CONTEXT
          Context
static String CTX_SERVER_CONTEXT_PLAIN
          Plain Context
static String CTX_SERVER_CONTEXT_SSL
          SSL Context
 SimpleDateFormat dateFormat
          Localized Date format
 SimpleDateFormat dateTimeFormat
          Localized Timestamp format
static String HDR_INFO
          Header Info Message
static String HDR_MESSAGE
          Header (Error) Message
 DecimalFormat integerFormat
          Localized Integer format
 Language language
          Session Language
 String loginInfo
          Login Info
static String NAME
          Sessition Attribute Name
 DecimalFormat numberFormat
          Localized Number format
 DecimalFormat quantityFormat
          Localized Quantity format
static int s_counter
          Static counter
 MStore wstore
          Web Store
 
Method Summary
static WebSessionCtx get(HttpServletRequest request, boolean createNew)
          Get/create Web Session Context
static WebSessionCtx get(HttpServletRequest request, int W_Store_ID)
          Get/create Web Session Context
 void setWStore(int W_Store_ID)
          Set Web Store
 String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CTX_SERVER_CONTEXT

public static final String CTX_SERVER_CONTEXT
Context

See Also:
Constant Field Values

CTX_SERVER_CONTEXT_SSL

public static final String CTX_SERVER_CONTEXT_SSL
SSL Context

See Also:
Constant Field Values

CTX_SERVER_CONTEXT_PLAIN

public static final String CTX_SERVER_CONTEXT_PLAIN
Plain Context

See Also:
Constant Field Values

CTX_DOCUMENT_DIR

public static final String CTX_DOCUMENT_DIR
Document Directory

See Also:
Constant Field Values

HDR_MESSAGE

public static final String HDR_MESSAGE
Header (Error) Message

See Also:
Constant Field Values

HDR_INFO

public static final String HDR_INFO
Header Info Message

See Also:
Constant Field Values

NAME

public static final String NAME
Sessition Attribute Name

See Also:
Constant Field Values

s_counter

public static int s_counter
Static counter


counter

public int counter
Instance Counter


ctx

public Ctx ctx
Session Context


language

public Language language
Session Language


dateFormat

public SimpleDateFormat dateFormat
Localized Date format


dateTimeFormat

public SimpleDateFormat dateTimeFormat
Localized Timestamp format


amountFormat

public DecimalFormat amountFormat
Localized Amount format


integerFormat

public DecimalFormat integerFormat
Localized Integer format


numberFormat

public DecimalFormat numberFormat
Localized Number format


quantityFormat

public DecimalFormat quantityFormat
Localized Quantity format


loginInfo

public String loginInfo
Login Info


wstore

public MStore wstore
Web Store

Method Detail

get

public static WebSessionCtx get(HttpServletRequest request,
                                int W_Store_ID)
Get/create Web Session Context

Parameters:
request - request
Returns:
ctx or null

get

public static WebSessionCtx get(HttpServletRequest request,
                                boolean createNew)
Get/create Web Session Context

Parameters:
request - request
Returns:
ctx or null

setWStore

public void setWStore(int W_Store_ID)
Set Web Store

Parameters:
W_Store_ID - Web Store ID

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
Session + count

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.