use of j.app.webserver.JSession in project JFramework by gugumall.
the class _JRouter_Stub method register.
public void register(JSession arg0, HttpSession arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("register__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", true);
out.write_value((Serializable) arg0, JSession.class);
out.write_value((Serializable) arg1, HttpSession.class);
out.write_value((Serializable) arg2, HttpServletRequest.class);
out.write_value((Serializable) arg3, HttpServletResponse.class);
_invoke(out);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
register(arg0, arg1, arg2, arg3);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("register__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", JRouter.class);
if (so == null) {
register(arg0, arg1, arg2, arg3);
return;
}
try {
Object[] copies = Util.copyObjects(new Object[] { arg0, arg1, arg2, arg3 }, _orb());
JSession arg0Copy = (JSession) copies[0];
HttpSession arg1Copy = (HttpSession) copies[1];
HttpServletRequest arg2Copy = (HttpServletRequest) copies[2];
HttpServletResponse arg3Copy = (HttpServletResponse) copies[3];
((JRouter) so.servant).register(arg0Copy, arg1Copy, arg2Copy, arg3Copy);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of j.app.webserver.JSession in project JFramework by gugumall.
the class _JRouter_Stub method getAllServiceNodeAvailable.
public void getAllServiceNodeAvailable(JSession arg0, HttpSession arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("getAllServiceNodeAvailable__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", true);
out.write_value((Serializable) arg0, JSession.class);
out.write_value((Serializable) arg1, HttpSession.class);
out.write_value((Serializable) arg2, HttpServletRequest.class);
out.write_value((Serializable) arg3, HttpServletResponse.class);
_invoke(out);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
getAllServiceNodeAvailable(arg0, arg1, arg2, arg3);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("getAllServiceNodeAvailable__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", JRouter.class);
if (so == null) {
getAllServiceNodeAvailable(arg0, arg1, arg2, arg3);
return;
}
try {
Object[] copies = Util.copyObjects(new Object[] { arg0, arg1, arg2, arg3 }, _orb());
JSession arg0Copy = (JSession) copies[0];
HttpSession arg1Copy = (HttpSession) copies[1];
HttpServletRequest arg2Copy = (HttpServletRequest) copies[2];
HttpServletResponse arg3Copy = (HttpServletResponse) copies[3];
((JRouter) so.servant).getAllServiceNodeAvailable(arg0Copy, arg1Copy, arg2Copy, arg3Copy);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
use of j.app.webserver.JSession in project JFramework by gugumall.
the class _JRouter_Stub method unregister.
public void unregister(JSession arg0, HttpSession arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws java.rmi.RemoteException {
if (!Util.isLocal(this)) {
try {
org.omg.CORBA_2_3.portable.InputStream in = null;
try {
org.omg.CORBA_2_3.portable.OutputStream out = (org.omg.CORBA_2_3.portable.OutputStream) _request("unregister__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", true);
out.write_value((Serializable) arg0, JSession.class);
out.write_value((Serializable) arg1, HttpSession.class);
out.write_value((Serializable) arg2, HttpServletRequest.class);
out.write_value((Serializable) arg3, HttpServletResponse.class);
_invoke(out);
} catch (ApplicationException ex) {
in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream();
String $_id = in.read_string();
throw new UnexpectedException($_id);
} catch (RemarshalException ex) {
unregister(arg0, arg1, arg2, arg3);
} finally {
_releaseReply(in);
}
} catch (SystemException ex) {
throw Util.mapSystemException(ex);
}
} else {
ServantObject so = _servant_preinvoke("unregister__j_app_webserver_JSession__javax_servlet_http_HttpSession__javax_servlet_http_HttpServletRequest__javax_servlet_http_HttpServletResponse", JRouter.class);
if (so == null) {
unregister(arg0, arg1, arg2, arg3);
return;
}
try {
Object[] copies = Util.copyObjects(new Object[] { arg0, arg1, arg2, arg3 }, _orb());
JSession arg0Copy = (JSession) copies[0];
HttpSession arg1Copy = (HttpSession) copies[1];
HttpServletRequest arg2Copy = (HttpServletRequest) copies[2];
HttpServletResponse arg3Copy = (HttpServletResponse) copies[3];
((JRouter) so.servant).unregister(arg0Copy, arg1Copy, arg2Copy, arg3Copy);
} catch (Throwable ex) {
Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
throw Util.wrapException(exCopy);
} finally {
_servant_postinvoke(so);
}
}
}
Aggregations