01: // Copyright %G% Sun Microsystems, Inc. All Rights Reserved.
02: // "%W% %E% Sun Microsystems"
03:
04: package com.sun.portal.wireless.taglibs.cal.socs;
05:
06: import javax.servlet.jsp.*;
07: import javax.servlet.jsp.tagext.*;
08: import com.sun.portal.wireless.taglibs.base.Context;
09: import com.sun.portal.wireless.taglibs.cal.*;
10:
11: /**
12: * SOCSContextTag - tag that represents a SOCSContext
13: * @version 1.0
14: * @see com.sun.portal.wireless.taglibs.cal.socs.SOCSContext
15: */
16: public class SOCSContextTag extends CalContextTag {
17:
18: /**
19: * the default constructor
20: */
21: public SOCSContextTag() {
22: super ();
23: }
24:
25: /**
26: * Return the SOCSContext
27: * @return the context
28: */
29: public Context findContext() throws Exception {
30: String configNameKey = SOCSContext.CONTEXT_TYPE + "configName";
31: String ssoAdapterKey = SOCSContext.CONTEXT_TYPE + "ssoAdapter";
32:
33: computeConfigName(pageContext, configNameKey, ssoAdapterKey,
34: CalContext.SSO_CONFIG_TYPE);
35:
36: return SOCSContext.getContext(pageContext);
37: }
38: }
|