test_class.file: webapp/impl/src/test/java/cloud/piranha/webapp/impl/DefaultHttpSessionTest.java
test_class.identifier: DefaultHttpSessionTest
test_case.body: @Test
      void testGetAttribute() {
          DefaultWebApplication webApp = new DefaultWebApplication();
          DefaultHttpSession session = new DefaultHttpSession(webApp);
          session.setSessionManager(new DefaultHttpSessionManager());
          session.setAttribute("TEST", "TEST");
          assertEquals("TEST", session.getAttribute("TEST"));
          session.removeAttribute("TEST");
          assertNull(session.getAttribute("TEST"));
      }
test_case.class_method_signature: DefaultHttpSessionTest.testGetAttribute()
test_case.full_signature: @Test void testGetAttribute()
test_case.identifier: testGetAttribute
test_case.invocations: setSessionManager setAttribute assertEquals getAttribute removeAttribute assertNull getAttribute
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAttribute()
focal_class.declarator: attributes = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<String, Object> attributes = new HashMap<>();
focal_class.type: HashMap<String, Object>
focal_class.var_name: attributes
focal_class.declarator: creationTime
focal_class.modifier: private
focal_class.original_string: private long creationTime;
focal_class.type: long
focal_class.var_name: creationTime
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: lastAccessedTime
focal_class.modifier: private
focal_class.original_string: private long lastAccessedTime;
focal_class.type: long
focal_class.var_name: lastAccessedTime
focal_class.declarator: maxInactiveInterval
focal_class.modifier: private
focal_class.original_string: private int maxInactiveInterval;
focal_class.type: int
focal_class.var_name: maxInactiveInterval
focal_class.declarator: newFlag
focal_class.modifier: private
focal_class.original_string: private boolean newFlag;
focal_class.type: boolean
focal_class.var_name: newFlag
focal_class.declarator: servletContext
focal_class.modifier: private
focal_class.original_string: private ServletContext servletContext;
focal_class.type: ServletContext
focal_class.var_name: servletContext
focal_class.declarator: sessionManager
focal_class.modifier: private
focal_class.original_string: private HttpSessionManager sessionManager;
focal_class.type: HttpSessionManager
focal_class.var_name: sessionManager
focal_class.declarator: valid
focal_class.modifier: private
focal_class.original_string: private boolean valid;
focal_class.type: boolean
focal_class.var_name: valid
focal_class.file: webapp/impl/src/main/java/cloud/piranha/webapp/impl/DefaultHttpSession.java
focal_class.identifier: DefaultHttpSession
focal_class.interfaces: implements HttpSession
focal_class.class_method_signature: DefaultHttpSession.DefaultHttpSession(ServletContext servletContext)
focal_class.full_signature: public  DefaultHttpSession(ServletContext servletContext)
focal_class.identifier: DefaultHttpSession
focal_class.modifiers: public
focal_class.parameters: (ServletContext servletContext)
focal_class.signature:  DefaultHttpSession(ServletContext servletContext)
focal_class.class_method_signature: DefaultHttpSession.DefaultHttpSession(ServletContext servletContext, String id, boolean newFlag)
focal_class.full_signature: public  DefaultHttpSession(ServletContext servletContext, String id, boolean newFlag)
focal_class.identifier: DefaultHttpSession
focal_class.modifiers: public
focal_class.parameters: (ServletContext servletContext, String id, boolean newFlag)
focal_class.signature:  DefaultHttpSession(ServletContext servletContext, String id, boolean newFlag)
focal_class.class_method_signature: DefaultHttpSession.getAttribute(String name)
focal_class.full_signature: @Override public Object getAttribute(String name)
focal_class.identifier: getAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: Object
focal_class.signature: Object getAttribute(String name)
focal_class.class_method_signature: DefaultHttpSession.getAttributeNames()
focal_class.full_signature: @Override public Enumeration<String> getAttributeNames()
focal_class.identifier: getAttributeNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Enumeration<String>
focal_class.signature: Enumeration<String> getAttributeNames()
focal_class.class_method_signature: DefaultHttpSession.getCreationTime()
focal_class.full_signature: @Override public long getCreationTime()
focal_class.identifier: getCreationTime
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getCreationTime()
focal_class.class_method_signature: DefaultHttpSession.getId()
focal_class.full_signature: @Override public String getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: DefaultHttpSession.getLastAccessedTime()
focal_class.full_signature: @Override public long getLastAccessedTime()
focal_class.identifier: getLastAccessedTime
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getLastAccessedTime()
focal_class.class_method_signature: DefaultHttpSession.getMaxInactiveInterval()
focal_class.full_signature: @Override public int getMaxInactiveInterval()
focal_class.identifier: getMaxInactiveInterval
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getMaxInactiveInterval()
focal_class.class_method_signature: DefaultHttpSession.getServletContext()
focal_class.full_signature: @Override public ServletContext getServletContext()
focal_class.identifier: getServletContext
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ServletContext
focal_class.signature: ServletContext getServletContext()
focal_class.class_method_signature: DefaultHttpSession.getSessionContext()
focal_class.full_signature: @Override public HttpSessionContext getSessionContext()
focal_class.identifier: getSessionContext
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: HttpSessionContext
focal_class.signature: HttpSessionContext getSessionContext()
focal_class.class_method_signature: DefaultHttpSession.getValue(String name)
focal_class.full_signature: @Override public Object getValue(String name)
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: Object
focal_class.signature: Object getValue(String name)
focal_class.class_method_signature: DefaultHttpSession.getValueNames()
focal_class.full_signature: @Override public String[] getValueNames()
focal_class.identifier: getValueNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String[]
focal_class.signature: String[] getValueNames()
focal_class.class_method_signature: DefaultHttpSession.invalidate()
focal_class.full_signature: @Override public void invalidate()
focal_class.identifier: invalidate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void invalidate()
focal_class.class_method_signature: DefaultHttpSession.isNew()
focal_class.full_signature: @Override public boolean isNew()
focal_class.identifier: isNew
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isNew()
focal_class.class_method_signature: DefaultHttpSession.putValue(String name, Object value)
focal_class.full_signature: @Override public void putValue(String name, Object value)
focal_class.identifier: putValue
focal_class.modifiers: @Override public
focal_class.parameters: (String name, Object value)
focal_class.return: void
focal_class.signature: void putValue(String name, Object value)
focal_class.class_method_signature: DefaultHttpSession.removeAttribute(String name)
focal_class.full_signature: @Override public void removeAttribute(String name)
focal_class.identifier: removeAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeAttribute(String name)
focal_class.class_method_signature: DefaultHttpSession.removeValue(String name)
focal_class.full_signature: @Override public void removeValue(String name)
focal_class.identifier: removeValue
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void removeValue(String name)
focal_class.class_method_signature: DefaultHttpSession.setAttribute(String name, Object value)
focal_class.full_signature: @Override public void setAttribute(String name, Object value)
focal_class.identifier: setAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (String name, Object value)
focal_class.return: void
focal_class.signature: void setAttribute(String name, Object value)
focal_class.class_method_signature: DefaultHttpSession.setId(String id)
focal_class.full_signature: public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: DefaultHttpSession.setMaxInactiveInterval(int maxInactiveInterval)
focal_class.full_signature: @Override public void setMaxInactiveInterval(int maxInactiveInterval)
focal_class.identifier: setMaxInactiveInterval
focal_class.modifiers: @Override public
focal_class.parameters: (int maxInactiveInterval)
focal_class.return: void
focal_class.signature: void setMaxInactiveInterval(int maxInactiveInterval)
focal_class.class_method_signature: DefaultHttpSession.setNew(boolean newFlag)
focal_class.full_signature: public void setNew(boolean newFlag)
focal_class.identifier: setNew
focal_class.modifiers: public
focal_class.parameters: (boolean newFlag)
focal_class.return: void
focal_class.signature: void setNew(boolean newFlag)
focal_class.class_method_signature: DefaultHttpSession.setSessionManager(HttpSessionManager sessionManager)
focal_class.full_signature: public void setSessionManager(HttpSessionManager sessionManager)
focal_class.identifier: setSessionManager
focal_class.modifiers: public
focal_class.parameters: (HttpSessionManager sessionManager)
focal_class.return: void
focal_class.signature: void setSessionManager(HttpSessionManager sessionManager)
focal_class.class_method_signature: DefaultHttpSession.verifyValid(String methodName)
focal_class.full_signature: private void verifyValid(String methodName)
focal_class.identifier: verifyValid
focal_class.modifiers: private
focal_class.parameters: (String methodName)
focal_class.return: void
focal_class.signature: void verifyValid(String methodName)
focal_method.body: @Override
      public Object getAttribute(String name) {
          verifyValid("getAttribute");
          return this.attributes.get(name);
      }
focal_method.class_method_signature: DefaultHttpSession.getAttribute(String name)
focal_method.full_signature: @Override public Object getAttribute(String name)
focal_method.identifier: getAttribute
focal_method.invocations: verifyValid get
focal_method.modifiers: @Override public
focal_method.parameters: (String name)
focal_method.return: Object
focal_method.signature: Object getAttribute(String name)