test_class.declarator: sessionStorage
test_class.modifier: private
test_class.original_string: private SessionStorage sessionStorage;
test_class.type: SessionStorage
test_class.var_name: sessionStorage
test_class.declarator: servletContext
test_class.modifier: private
test_class.original_string: private ServletContextImpl servletContext;
test_class.type: ServletContextImpl
test_class.var_name: servletContext
test_class.declarator: response
test_class.modifier: private
test_class.original_string: private HttpServletResponseImpl response;
test_class.type: HttpServletResponseImpl
test_class.var_name: response
test_class.file: http/src/test/java/ro/polak/http/servlet/impl/ServletContextImplTest.java
test_class.identifier: ServletContextImplTest
test_case.body: @Test
      public void shouldCreateSessionWithCorrectContext() {
          HttpSessionImpl session = servletContext.createNewSession();
          assertThat(session, is(not(nullValue())));
          assertThat(session.getServletContext(), is((ServletContext) servletContext));
      }
test_case.class_method_signature: ServletContextImplTest.shouldCreateSessionWithCorrectContext()
test_case.full_signature: @Test public void shouldCreateSessionWithCorrectContext()
test_case.identifier: shouldCreateSessionWithCorrectContext
test_case.invocations: createNewSession assertThat is not nullValue assertThat getServletContext is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldCreateSessionWithCorrectContext()
focal_class.declarator: LOGGER = Logger.getLogger(ServletContextImpl.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = Logger.getLogger(ServletContextImpl.class.getName());
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: MS_IN_SECOND = 1000
focal_class.modifier: private static final
focal_class.original_string: private static final int MS_IN_SECOND = 1000;
focal_class.type: int
focal_class.var_name: MS_IN_SECOND
focal_class.declarator: MAX_AGE_IN_PAST = -100
focal_class.modifier: public static final
focal_class.original_string: public static final int MAX_AGE_IN_PAST = -100;
focal_class.type: int
focal_class.var_name: MAX_AGE_IN_PAST
focal_class.declarator: serverConfig
focal_class.modifier: private final
focal_class.original_string: private final ServerConfig serverConfig;
focal_class.type: ServerConfig
focal_class.var_name: serverConfig
focal_class.declarator: sessionStorage
focal_class.modifier: private final
focal_class.original_string: private final SessionStorage sessionStorage;
focal_class.type: SessionStorage
focal_class.var_name: sessionStorage
focal_class.declarator: contextPath
focal_class.modifier: private final
focal_class.original_string: private final String contextPath;
focal_class.type: String
focal_class.var_name: contextPath
focal_class.declarator: servletMappings
focal_class.modifier: private final
focal_class.original_string: private final List<ServletMapping> servletMappings;
focal_class.type: List<ServletMapping>
focal_class.var_name: servletMappings
focal_class.declarator: filterMappings
focal_class.modifier: private final
focal_class.original_string: private final List<FilterMapping> filterMappings;
focal_class.type: List<FilterMapping>
focal_class.var_name: filterMappings
focal_class.declarator: attributes
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Object> attributes;
focal_class.type: Map<String, Object>
focal_class.var_name: attributes
focal_class.file: http/src/main/java/ro/polak/http/servlet/impl/ServletContextImpl.java
focal_class.identifier: ServletContextImpl
focal_class.interfaces: implements ServletContext
focal_class.class_method_signature: ServletContextImpl.ServletContextImpl(final String contextPath,
                                final List<ServletMapping> servletMappings,
                                final List<FilterMapping> filterMappings,
                                final Map<String, Object> attributes,
                                final ServerConfig serverConfig,
                                final SessionStorage sessionStorage)
focal_class.full_signature: public  ServletContextImpl(final String contextPath,
                                final List<ServletMapping> servletMappings,
                                final List<FilterMapping> filterMappings,
                                final Map<String, Object> attributes,
                                final ServerConfig serverConfig,
                                final SessionStorage sessionStorage)
focal_class.identifier: ServletContextImpl
focal_class.modifiers: public
focal_class.parameters: (final String contextPath,
                                final List<ServletMapping> servletMappings,
                                final List<FilterMapping> filterMappings,
                                final Map<String, Object> attributes,
                                final ServerConfig serverConfig,
                                final SessionStorage sessionStorage)
focal_class.signature:  ServletContextImpl(final String contextPath,
                                final List<ServletMapping> servletMappings,
                                final List<FilterMapping> filterMappings,
                                final Map<String, Object> attributes,
                                final ServerConfig serverConfig,
                                final SessionStorage sessionStorage)
focal_class.class_method_signature: ServletContextImpl.getMimeType(final String file)
focal_class.full_signature: @Override public String getMimeType(final String file)
focal_class.identifier: getMimeType
focal_class.modifiers: @Override public
focal_class.parameters: (final String file)
focal_class.return: String
focal_class.signature: String getMimeType(final String file)
focal_class.class_method_signature: ServletContextImpl.setAttribute(final String name, final Object value)
focal_class.full_signature: @Override public void setAttribute(final String name, final Object value)
focal_class.identifier: setAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (final String name, final Object value)
focal_class.return: void
focal_class.signature: void setAttribute(final String name, final Object value)
focal_class.class_method_signature: ServletContextImpl.getAttribute(final String name)
focal_class.full_signature: @Override public Object getAttribute(final String name)
focal_class.identifier: getAttribute
focal_class.modifiers: @Override public
focal_class.parameters: (final String name)
focal_class.return: Object
focal_class.signature: Object getAttribute(final String name)
focal_class.class_method_signature: ServletContextImpl.getAttributeNames()
focal_class.full_signature: @Override public Enumeration getAttributeNames()
focal_class.identifier: getAttributeNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Enumeration
focal_class.signature: Enumeration getAttributeNames()
focal_class.class_method_signature: ServletContextImpl.getSession(final String id)
focal_class.full_signature: public HttpSessionImpl getSession(final String id)
focal_class.identifier: getSession
focal_class.modifiers: public
focal_class.parameters: (final String id)
focal_class.return: HttpSessionImpl
focal_class.signature: HttpSessionImpl getSession(final String id)
focal_class.class_method_signature: ServletContextImpl.createNewSession()
focal_class.full_signature: public HttpSessionImpl createNewSession()
focal_class.identifier: createNewSession
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: HttpSessionImpl
focal_class.signature: HttpSessionImpl createNewSession()
focal_class.class_method_signature: ServletContextImpl.handleSession(final HttpSessionImpl session, final HttpServletResponseImpl response)
focal_class.full_signature: public void handleSession(final HttpSessionImpl session, final HttpServletResponseImpl response)
focal_class.identifier: handleSession
focal_class.modifiers: public
focal_class.parameters: (final HttpSessionImpl session, final HttpServletResponseImpl response)
focal_class.return: void
focal_class.signature: void handleSession(final HttpSessionImpl session, final HttpServletResponseImpl response)
focal_class.class_method_signature: ServletContextImpl.isSessionExpired(final HttpSessionImpl session)
focal_class.full_signature: private boolean isSessionExpired(final HttpSessionImpl session)
focal_class.identifier: isSessionExpired
focal_class.modifiers: private
focal_class.parameters: (final HttpSessionImpl session)
focal_class.return: boolean
focal_class.signature: boolean isSessionExpired(final HttpSessionImpl session)
focal_class.class_method_signature: ServletContextImpl.getServletMappings()
focal_class.full_signature: @Override public List<ServletMapping> getServletMappings()
focal_class.identifier: getServletMappings
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<ServletMapping>
focal_class.signature: List<ServletMapping> getServletMappings()
focal_class.class_method_signature: ServletContextImpl.getFilterMappings()
focal_class.full_signature: @Override public List<FilterMapping> getFilterMappings()
focal_class.identifier: getFilterMappings
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<FilterMapping>
focal_class.signature: List<FilterMapping> getFilterMappings()
focal_class.class_method_signature: ServletContextImpl.getContextPath()
focal_class.full_signature: @Override public String getContextPath()
focal_class.identifier: getContextPath
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getContextPath()
focal_method.body: public HttpSessionImpl createNewSession() {
          HttpSessionImpl session = new HttpSessionImpl(StringUtilities.generateRandom(), System.currentTimeMillis());
          session.setServletContext(this);
          LOGGER.log(Level.FINE, "Created a new session {0}",
                  new Object[]{session.getId()});
          return session;
      }
focal_method.class_method_signature: ServletContextImpl.createNewSession()
focal_method.full_signature: public HttpSessionImpl createNewSession()
focal_method.identifier: createNewSession
focal_method.invocations: generateRandom currentTimeMillis setServletContext log getId
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: HttpSessionImpl
focal_method.signature: HttpSessionImpl createNewSession()