|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mentata.l3d.L3DContext
com.mentata.sg8.SG8Context
An L3D context for use with the SG8 gateway. This subclass of L3DContext recognizes additional context-wide configuration options including a style sheet, header/footer include files, mail service parameters, indicators for custom JSP, and a maximum row size for HTML form elements. An SG8 context can also be configured to force authentication or share connections with another context.
| Field Summary |
| Fields inherited from class com.mentata.l3d.L3DContext |
CONTEXT_CLASS, CONTEXT_ROOT |
| Constructor Summary | |
SG8Context(String name)
Constructs a context using properties defined for the given name. |
|
| Method Summary | |
LDAPConnection |
getConnection()
Returns a standard connection to the directory. |
String |
getFooter()
Returns the footer HTML to use in dynamic output. |
String |
getHeader()
Returns the header HTML to use in dynamic output. |
String |
getJSP(String page)
Returns the path for the named JSP as used with the context. |
String |
getMailFrom()
Returns the default from address to use in email sent from the context. |
String |
getMailHost()
Returns the hostname for the email server to use with the context. |
String |
getServletPath()
Returns the application path used by the servlets invoking the context. |
SG8Object |
getSG8Object(String classname)
Returns an empty instance of a named SG8 object. |
String |
getStylesheet()
Returns the CSS stylesheet to use in dynamic HTML output. |
int |
getTextColumns()
Returns the maximum number of textentry columns to use in forms. |
boolean |
isAuthenticated(HttpSession session)
Indicates if a session is authenticated for the context. |
boolean |
isClosed()
Indicates if the context requires authentication for retrieval. |
boolean |
isSharing()
Indicates if the context sharing another context's connection pool. |
void |
returnConnection(LDAPConnection conn)
Returns a shared connection to the context. |
| Methods inherited from class com.mentata.l3d.L3DContext |
getConnection, getLabel, getName, getObject, getObject, getObject, getProperties, isPooling |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SG8Context(String name)
throws L3DException
name - the name of the context
L3DException - if the properties file is undefined| Method Detail |
public SG8Object getSG8Object(String classname)
throws SG8Exception
classname - the class name of the object
SG8Exception - if the object is improperly definedpublic final boolean isClosed()
public final String getStylesheet()
nullpublic final String getHeader()
nullpublic final String getFooter()
nullpublic final int getTextColumns()
public final boolean isSharing()
public final boolean isAuthenticated(HttpSession session)
session - an HTTP session
public final String getServletPath()
public final String getMailHost()
public final String getMailFrom()
public final String getJSP(String page)
page - the name of the page
public final LDAPConnection getConnection()
throws L3DException
L3DContext
getConnection in class L3DContextL3DException - if a pool cannot be created or a connection is unavailablepublic final void returnConnection(LDAPConnection conn)
L3DContext
returnConnection in class L3DContextconn - a connection created by the context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||