|
Servoy 5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface ISessionBean
Interface to interact with a client from within a HTTP session, like a JSP page.
ISessionBean servoy_hc = (ISessionBean)session.getAttribute("servoy");
if (servoy_hc == null)
{
//args are solution name,username,password
servoy_hc = HeadlessClientFactory.createSessionBean(request, "headless_client_demo");
session.setAttribute("servoy", servoy_hc);
}
//servoy_hc is now usable...
Sample contextName values:
HeadlessClientFactory| Method Summary | |
|---|---|
IDataSet |
getValueListItems(String contextName,
String valuelistName)
Get valuelist items as dataset. |
int |
setDataProviderValues(String contextName,
javax.servlet.http.HttpServletRequest request_data)
Set all request parameters as dataprovider values, if the names match. |
void |
setLocale(Locale l)
Override the default used browser locale |
boolean |
setMainForm(String formName)
Sets a form as main form. |
| Methods inherited from interface com.servoy.j2db.server.headlessclient.IHeadlessClient |
|---|
getClientID, getDataProviderValue, getPluginAccess, isValid, setDataProviderValue, shutDown |
| Methods inherited from interface javax.servlet.http.HttpSessionBindingListener |
|---|
valueBound, valueUnbound |
| Method Detail |
|---|
IDataSet getValueListItems(String contextName,
String valuelistName)
contextName - the context for this requestvaluelistName - the name from the valuelist
int setDataProviderValues(String contextName,
javax.servlet.http.HttpServletRequest request_data)
context - This is the form name or null if the method is a global method.request_data - the page request objectvoid setLocale(Locale l)
l - boolean setMainForm(String formName)
formName - the name of the form to set as main form
|
Copyright © 2010 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||