Sha256: 89e94bd5ae131b452d61282c623c8520a90eee5069168fff8b343b42c6ae01b0

Contents?: true

Size: 986 Bytes

Versions: 4

Compression:

Stored size: 986 Bytes

Contents

require 'cgi'

class Buby
  # This class is used to hold details about an HTTP cookie. Implements the
  # +burp.ICookie+ interface
  #
  class Cookie < CGI::Cookie
    include Java::Burp::ICookie

    # This method is used to retrieve the domain for which the cookie is in
    # scope. 
    #
    # @return [String] The domain for which the cookie is in scope.
    def getDomain
      @domain
    end

    # This method is used to retrieve the expiration time for the cookie.
    #
    # @return [java.util.Date] The expiration time for the cookie, or +nil+ if
    #   none is set (i.e., for non-persistent session cookies).
    #
    def getExpiration; @expires; end

    # This method is used to retrieve the name of the cookie.
    #
    # @return [String] The name of the cookie.
    #
    def getName; @name; end

    # This method is used to retrieve the value of the cookie.
    # 
    # @return [String] The value of the cookie.
    #
    def getValue; join("&"); end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
buby-1.6.0-java lib/buby/cookie.rb
buby-1.5.2-java lib/buby/cookie.rb
buby-1.5.1-java lib/buby/cookie.rb
buby-1.5.0-java lib/buby/cookie.rb