Sha256: 41ae2ddcfc14aafd2a0cc2ad1f4c835daa7704c5d42bf06d0aecb2279385f12b

Contents?: true

Size: 2 KB

Versions: 28

Compression:

Stored size: 2 KB

Contents

require "java"
require "uri"
require "cgi"

require_relative "./manticore_jars.rb"
require_relative "./org/manticore/manticore-ext"

org.manticore.Manticore.new.load(JRuby.runtime, false)

require_relative "./manticore/version"

# HTTP client with the body of a lion and the head of a man. Or more simply, the power of Java
# with the beauty of Ruby.
module Manticore
  # General base class for all Manticore exceptions
  class ManticoreException < StandardError; end

  # Exception thrown if you attempt to read from a closed Response stream
  class StreamClosedException < ManticoreException; end

  # Friendly wrapper for various Java ClientProtocolExceptions
  class ClientProtocolException < ManticoreException; end

  # DNS resolution failure
  class ResolutionFailure < ManticoreException; end

  # Is something flat out malformed (bad port number?)
  class InvalidArgumentException < ManticoreException; end

  # The client has been closed so it's no longer usable
  class ClientStoppedException < ManticoreException; end

  # Socket breaks, etc
  class SocketException < ManticoreException; end

  # General Timeout exception thrown for various Manticore timeouts
  class Timeout < ManticoreException; end
  class SocketTimeout < Timeout; end
  class ConnectTimeout < Timeout; end

  # Did we miss an exception? We may still want to catch it
  class UnknownException < ManticoreException; end

  require_relative "./manticore/java_extensions"
  require_relative "./manticore/client/proxies"
  require_relative "./manticore/client"
  require_relative "./manticore/response"
  require_relative "./manticore/stubbed_response"
  require_relative "./manticore/cookie"
  require_relative "./manticore/facade"

  include Facade
  include_http_client

  def self.disable_httpcomponents_logging!
    props = Java::JavaLang::System.properties
    props.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog")
    props.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http", "error")
  end
end

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/manticore-0.7.0-java/lib/manticore.rb
manticore-0.7.0-java lib/manticore.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/manticore-0.6.4-java/lib/manticore.rb