Class: TorqueBox::Session::SessionData

Inherits:
Hash
  • Object
show all
Defined in:
web/lib/torquebox/session/servlet_store.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) :java_session

Returns the value of attribute :java_session



135
136
137
# File 'web/lib/torquebox/session/servlet_store.rb', line 135

def :java_session
  @:java_session
end

Instance Method Details

- (Object) [](key)



155
156
157
# File 'web/lib/torquebox/session/servlet_store.rb', line 155

def [](key)
  super(key.to_s)
end

- (Object) delete(key)



174
175
176
# File 'web/lib/torquebox/session/servlet_store.rb', line 174

def delete(key)
  super(key.to_s)
end

- (Object) destroy



141
142
143
144
# File 'web/lib/torquebox/session/servlet_store.rb', line 141

def destroy
  clear
  @java_session.invalidate if @java_session
end

- (Object) fetch(key, *args, &block)



159
160
161
# File 'web/lib/torquebox/session/servlet_store.rb', line 159

def fetch(key, *args, &block)
  super(key.to_s, *args, &block)
end

- (Boolean) has_key?(key)

Returns:

  • (Boolean)


163
164
165
# File 'web/lib/torquebox/session/servlet_store.rb', line 163

def has_key?(key)
  super(key.to_s)
end

- (Object) replace(hash)



151
152
153
# File 'web/lib/torquebox/session/servlet_store.rb', line 151

def replace(hash)
  super(stringify_keys(hash))
end

- (Object) store(key, value)



169
170
171
# File 'web/lib/torquebox/session/servlet_store.rb', line 169

def store(key, value)
  super(key.to_s, value)
end

- (Object) stringify_keys(other)



180
181
182
183
184
185
186
# File 'web/lib/torquebox/session/servlet_store.rb', line 180

def stringify_keys(other)
  hash = {}
  other.each do |key, value|
    hash[key.to_s] = value
  end
  hash
end

- (Object) update(hash)



146
147
148
# File 'web/lib/torquebox/session/servlet_store.rb', line 146

def update(hash)
  super(stringify_keys(hash))
end

- (Object) url_suffix



137
138
139
# File 'web/lib/torquebox/session/servlet_store.rb', line 137

def url_suffix
  ";jsessionid=#{self[:session_id]}"
end