use of com.genexus.internet.HttpRequest in project JavaClasses by genexuslabs.
the class GXGridStateHandler method loadGridState.
public void loadGridState() {
HttpContext httpContext = (HttpContext) context.getHttpContext();
HttpRequest httpRequest = httpContext.getHttpRequest();
if (GXutil.strcmp(httpRequest.getMethod(), "GET") == 0) {
WebSession session = httpContext.getWebSession();
state = new SdtGridState(context);
state.fromJSonString(session.getValue(gridName));
runVarsFromState();
dirty = true;
}
}
use of com.genexus.internet.HttpRequest in project JavaClasses by genexuslabs.
the class WebWrapper method setSource.
public void setSource(GXWebPanel panel) {
this.panel = panel;
ModelContext context = panel.getModelContext();
HttpRequest httpReq = ((HttpContext) context.getHttpContext()).getHttpRequest();
IHttpServletRequest httpSerReq = ((HttpContext) context.getHttpContext()).getRequest();
context.setHttpContext(new HttpContextNull());
((HttpContext) context.getHttpContext()).setHttpRequest(httpReq);
((HttpContext) context.getHttpContext()).setRequest(httpSerReq);
((HttpContext) context.getHttpContext()).setContext(context);
panel.setHttpContext(((HttpContext) context.getHttpContext()));
panel.getHttpContext().setCompression(false);
panel.getHttpContext().setBuffered(false);
panel.getHttpContext().useUtf8 = true;
panel.getHttpContext().setOutputStream(new java.io.ByteArrayOutputStream());
}
Aggregations