本文整理了Java中org.jruby.Ruby.isDoNotReverseLookupEnabled
方法的一些代码示例,展示了Ruby.isDoNotReverseLookupEnabled
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ruby.isDoNotReverseLookupEnabled
方法的具体详情如下:
包路径:org.jruby.Ruby
类名称:Ruby
方法名:isDoNotReverseLookupEnabled
暂无
代码示例来源:origin: org.jruby/jruby-complete
public boolean doNotReverseLookup(ThreadContext context) {
return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
public boolean doNotReverseLookup(ThreadContext context) {
return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}
代码示例来源:origin: org.jruby/jruby-core
public boolean doNotReverseLookup(ThreadContext context) {
return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
public boolean doNotReverseLookup(ThreadContext context) {
return context.runtime.isDoNotReverseLookupEnabled() || doNotReverseLookup;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
private static String getHostAddress(ThreadContext context, InetAddress addr) {
return context.runtime.isDoNotReverseLookupEnabled() ? addr.getHostAddress() : addr.getCanonicalHostName();
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
private static String getHostAddress(ThreadContext context, InetAddress addr) {
return context.runtime.isDoNotReverseLookupEnabled() ? addr.getHostAddress() : addr.getCanonicalHostName();
}
代码示例来源:origin: org.jruby/jruby-complete
private static String getHostAddress(ThreadContext context, InetAddress addr, Boolean reverse) {
String ret;
if (reverse == null) {
ret = context.runtime.isDoNotReverseLookupEnabled() ?
addr.getHostAddress() : addr.getCanonicalHostName();
} else if (reverse) {
ret = addr.getCanonicalHostName();
} else {
ret = addr.getHostAddress();
}
return ret;
}
代码示例来源:origin: org.jruby/jruby-core
private static String getHostAddress(ThreadContext context, InetAddress addr, Boolean reverse) {
String ret;
if (reverse == null) {
ret = context.runtime.isDoNotReverseLookupEnabled() ?
addr.getHostAddress() : addr.getCanonicalHostName();
} else if (reverse) {
ret = addr.getCanonicalHostName();
} else {
ret = addr.getHostAddress();
}
return ret;
}
代码示例来源:origin: org.jruby/jruby-complete
@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.jruby/jruby-complete
private IRubyObject peeraddrCommon(ThreadContext context, IRubyObject reverse) {
Boolean doReverse = doReverseLookup(context, reverse);
if (doReverse == null) doReverse = !context.runtime.isDoNotReverseLookupEnabled();
return peeraddrCommon(context, doReverse);
}
代码示例来源:origin: org.jruby/jruby-core
@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.jruby/jruby-core
private IRubyObject peeraddrCommon(ThreadContext context, IRubyObject reverse) {
Boolean doReverse = doReverseLookup(context, reverse);
if (doReverse == null) doReverse = !context.runtime.isDoNotReverseLookupEnabled();
return peeraddrCommon(context, doReverse);
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@JRubyMethod(meta = true)
public static IRubyObject do_not_reverse_lookup(ThreadContext context, IRubyObject recv) {
return context.runtime.newBoolean(context.runtime.isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.jruby/jruby-complete
@JRubyMethod(name = "addr")
public IRubyObject addr(ThreadContext context) {
return addrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.jruby/jruby-core
@JRubyMethod(name = "addr")
public IRubyObject addr(ThreadContext context) {
return addrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.jruby/jruby-core
@JRubyMethod(name = "peeraddr")
public IRubyObject peeraddr(ThreadContext context) {
return peeraddrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}
代码示例来源:origin: org.jruby/jruby-complete
@JRubyMethod(name = "peeraddr")
public IRubyObject peeraddr(ThreadContext context) {
return peeraddrCommon(context, !context.getRuntime().isDoNotReverseLookupEnabled());
}
内容来源于网络,如有侵权,请联系作者删除!