public IRubyObject callMethod(IRubyObject receiver, String methodName, IRubyObject[] args, Block block) { return adapter.callMethod(receiver, methodName, args, block); }
public IRubyObject callSuper(IRubyObject receiver, IRubyObject[] args, Block block) { return adapter.callSuper(receiver, args, block); }
public IRubyObject[] convertToJavaArray(IRubyObject array) { return adapter.convertToJavaArray(array); }
public RackResponse call(final RackEnvironment env) { final Ruby runtime = getRuntime(); try { final RackInput io = new RackInput(runtime, env); try { IRubyObject servlet_env = JavaEmbedUtils.javaToRuby(runtime, env); if (env instanceof RackEnvironment.ToIO) { ((RackEnvironment.ToIO) env).setIO(io); } else { // TODO this is @deprecated and will be removed ... // NOTE JRuby 1.7.x does not like instance vars for Java : // warning: instance vars on non-persistent Java type // Java::OrgJrubyRackServlet::ServletRackEnvironment // (http://wiki.jruby.org/Persistence) runtime.evalScriptlet("require 'jruby/rack/environment'"); adapter.setInstanceVariable(servlet_env, "@_io", io); } IRubyObject response = adapter.callMethod(getApplication(), "call", servlet_env); return (RackResponse) JavaEmbedUtils.rubyToJava(runtime, response, RackResponse.class); } finally { io.close(); } } catch (IOException e) { throw RaiseException.createNativeRaiseException(runtime, e); } }
public RubyString convertToRubyString(IRubyObject obj) { return adapter.convertToRubyString(obj); }
public boolean isKindOf(IRubyObject value, RubyModule rubyModule) { return adapter.isKindOf(value, rubyModule); }
public RubyInteger convertToRubyInteger(IRubyObject obj) { return adapter.convertToRubyInteger(obj); }
public RubyString convertToRubyString(IRubyObject obj) { return adapter.convertToRubyString(obj); }
public boolean isKindOf(IRubyObject value, RubyModule rubyModule) { return adapter.isKindOf(value, rubyModule); }
public RubyInteger convertToRubyInteger(IRubyObject obj) { return adapter.convertToRubyInteger(obj); }
public IRubyObject callMethod(IRubyObject receiver, String methodName) { return adapter.callMethod(receiver, methodName); }
public IRubyObject callSuper(IRubyObject receiver, IRubyObject[] args) { return adapter.callSuper(receiver, args); }
public RubyString convertToRubyString(IRubyObject obj) { return adapter.convertToRubyString(obj); }
public boolean isKindOf(IRubyObject value, RubyModule rubyModule) { return adapter.isKindOf(value, rubyModule); }
public IRubyObject[] convertToJavaArray(IRubyObject array) { return adapter.convertToJavaArray(array); }
public RubyInteger convertToRubyInteger(IRubyObject obj) { return adapter.convertToRubyInteger(obj); }
public IRubyObject callMethod(IRubyObject receiver, String methodName, IRubyObject[] args, Block block) { return adapter.callMethod(receiver, methodName, args, block); }
public IRubyObject callSuper(IRubyObject receiver, IRubyObject[] args) { return adapter.callSuper(receiver, args); }
public RubyString convertToRubyString(IRubyObject obj) { return adapter.convertToRubyString(obj); }
public boolean isKindOf(IRubyObject value, RubyModule rubyModule) { return adapter.isKindOf(value, rubyModule); }