Class: TorqueBox::Session::SessionData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#java_sessionObject

Returns the value of attribute java_session


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

def java_session
  @java_session
end

Instance Method Details

#[](key) ⇒ Object


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

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

#delete(key) ⇒ Object


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

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

#destroyObject


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

def destroy
  clear
  @java_session.invalidate if @java_session
end

#fetch(key, *args, &block) ⇒ Object


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

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

#has_key?(key) ⇒ Boolean Also known as: key?, include?

Returns:

  • (Boolean)

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

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

#replace(hash) ⇒ Object


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

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

#store(key, value) ⇒ Object Also known as: []=


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

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

#update(hash) ⇒ Object Also known as: merge!


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

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

#url_suffixObject


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

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