test_class.file: base/lang/src/test/java/leap/lang/servlet/ServletsTest.java
test_class.identifier: ServletsTest
test_class.superclass: extends TestBase
test_case.body: @Test
      public void testGetRequestPathFromUrl() {
          String url = "http://localhost/context/path1";
  
          assertEquals("/context/path1", Servlets.getRequestPathFromUri(url, ""));
          assertEquals("/path1", Servlets.getRequestPathFromUri(url, "/context"));
          
          url = "http://localhost/context/path1?p=1";
          assertEquals("/context/path1", Servlets.getRequestPathFromUri(url, ""));
          assertEquals("/path1", Servlets.getRequestPathFromUri(url, "/context"));
          
          url = "/context/path1?p=1";
          assertEquals("/context/path1", Servlets.getRequestPathFromUri(url, ""));
          assertEquals("/path1", Servlets.getRequestPathFromUri(url, "/context"));
      }
test_case.class_method_signature: ServletsTest.testGetRequestPathFromUrl()
test_case.full_signature: @Test public void testGetRequestPathFromUrl()
test_case.identifier: testGetRequestPathFromUrl
test_case.invocations: assertEquals getRequestPathFromUri assertEquals getRequestPathFromUri assertEquals getRequestPathFromUri assertEquals getRequestPathFromUri assertEquals getRequestPathFromUri assertEquals getRequestPathFromUri
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetRequestPathFromUrl()
focal_class.declarator: INCLUDE_REQUEST_URI_ATTRIBUTE  = "javax.servlet.include.request_uri"
focal_class.modifier: public static final
focal_class.original_string: public static final String INCLUDE_REQUEST_URI_ATTRIBUTE  = "javax.servlet.include.request_uri";
focal_class.type: String
focal_class.var_name: INCLUDE_REQUEST_URI_ATTRIBUTE
focal_class.declarator: INCLUDE_CONTEXT_PATH_ATTRIBUTE = "javax.servlet.include.context_path"
focal_class.modifier: public static final
focal_class.original_string: public static final String INCLUDE_CONTEXT_PATH_ATTRIBUTE = "javax.servlet.include.context_path";
focal_class.type: String
focal_class.var_name: INCLUDE_CONTEXT_PATH_ATTRIBUTE
focal_class.declarator: INCLUDE_SERVLET_PATH_ATTRIBUTE = "javax.servlet.include.servlet_path"
focal_class.modifier: public static final
focal_class.original_string: public static final String INCLUDE_SERVLET_PATH_ATTRIBUTE = "javax.servlet.include.servlet_path";
focal_class.type: String
focal_class.var_name: INCLUDE_SERVLET_PATH_ATTRIBUTE
focal_class.declarator: INCLUDE_PATH_INFO_ATTRIBUTE    = "javax.servlet.include.path_info"
focal_class.modifier: public static final
focal_class.original_string: public static final String INCLUDE_PATH_INFO_ATTRIBUTE    = "javax.servlet.include.path_info";
focal_class.type: String
focal_class.var_name: INCLUDE_PATH_INFO_ATTRIBUTE
focal_class.declarator: INCLUDE_QUERY_STRING_ATTRIBUTE = "javax.servlet.include.query_string"
focal_class.modifier: public static final
focal_class.original_string: public static final String INCLUDE_QUERY_STRING_ATTRIBUTE = "javax.servlet.include.query_string";
focal_class.type: String
focal_class.var_name: INCLUDE_QUERY_STRING_ATTRIBUTE
focal_class.declarator: FORWARD_REQUEST_URI_ATTRIBUTE  = "javax.servlet.forward.request_uri"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORWARD_REQUEST_URI_ATTRIBUTE  = "javax.servlet.forward.request_uri";
focal_class.type: String
focal_class.var_name: FORWARD_REQUEST_URI_ATTRIBUTE
focal_class.declarator: FORWARD_CONTEXT_PATH_ATTRIBUTE = "javax.servlet.forward.context_path"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORWARD_CONTEXT_PATH_ATTRIBUTE = "javax.servlet.forward.context_path";
focal_class.type: String
focal_class.var_name: FORWARD_CONTEXT_PATH_ATTRIBUTE
focal_class.declarator: FORWARD_SERVLET_PATH_ATTRIBUTE = "javax.servlet.forward.servlet_path"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORWARD_SERVLET_PATH_ATTRIBUTE = "javax.servlet.forward.servlet_path";
focal_class.type: String
focal_class.var_name: FORWARD_SERVLET_PATH_ATTRIBUTE
focal_class.declarator: FORWARD_PATH_INFO_ATTRIBUTE    = "javax.servlet.forward.path_info"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORWARD_PATH_INFO_ATTRIBUTE    = "javax.servlet.forward.path_info";
focal_class.type: String
focal_class.var_name: FORWARD_PATH_INFO_ATTRIBUTE
focal_class.declarator: FORWARD_QUERY_STRING_ATTRIBUTE = "javax.servlet.forward.query_string"
focal_class.modifier: public static final
focal_class.original_string: public static final String FORWARD_QUERY_STRING_ATTRIBUTE = "javax.servlet.forward.query_string";
focal_class.type: String
focal_class.var_name: FORWARD_QUERY_STRING_ATTRIBUTE
focal_class.declarator: ERROR_STATUS_CODE_ATTRIBUTE    = "javax.servlet.error.status_code"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_STATUS_CODE_ATTRIBUTE    = "javax.servlet.error.status_code";
focal_class.type: String
focal_class.var_name: ERROR_STATUS_CODE_ATTRIBUTE
focal_class.declarator: ERROR_EXCEPTION_TYPE_ATTRIBUTE = "javax.servlet.error.exception_type"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_EXCEPTION_TYPE_ATTRIBUTE = "javax.servlet.error.exception_type";
focal_class.type: String
focal_class.var_name: ERROR_EXCEPTION_TYPE_ATTRIBUTE
focal_class.declarator: ERROR_MESSAGE_ATTRIBUTE        = "javax.servlet.error.message"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_MESSAGE_ATTRIBUTE        = "javax.servlet.error.message";
focal_class.type: String
focal_class.var_name: ERROR_MESSAGE_ATTRIBUTE
focal_class.declarator: ERROR_EXCEPTION_ATTRIBUTE      = "javax.servlet.error.exception"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_EXCEPTION_ATTRIBUTE      = "javax.servlet.error.exception";
focal_class.type: String
focal_class.var_name: ERROR_EXCEPTION_ATTRIBUTE
focal_class.declarator: ERROR_REQUEST_URI_ATTRIBUTE    = "javax.servlet.error.request_uri"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_REQUEST_URI_ATTRIBUTE    = "javax.servlet.error.request_uri";
focal_class.type: String
focal_class.var_name: ERROR_REQUEST_URI_ATTRIBUTE
focal_class.declarator: ERROR_SERVLET_NAME_ATTRIBUTE   = "javax.servlet.error.servlet_name"
focal_class.modifier: public static final
focal_class.original_string: public static final String ERROR_SERVLET_NAME_ATTRIBUTE   = "javax.servlet.error.servlet_name";
focal_class.type: String
focal_class.var_name: ERROR_SERVLET_NAME_ATTRIBUTE
focal_class.declarator: TEMP_DIR_CONTEXT_ATTRIBUTE = "javax.servlet.context.tempdir"
focal_class.modifier: public static final
focal_class.original_string: public static final String TEMP_DIR_CONTEXT_ATTRIBUTE = "javax.servlet.context.tempdir";
focal_class.type: String
focal_class.var_name: TEMP_DIR_CONTEXT_ATTRIBUTE
focal_class.file: base/lang/src/main/java/leap/lang/servlet/Servlets.java
focal_class.identifier: Servlets
focal_class.class_method_signature: Servlets.getResource(ServletContext sc,String path)
focal_class.full_signature: public static ServletResource getResource(ServletContext sc,String path)
focal_class.identifier: getResource
focal_class.modifiers: public static
focal_class.parameters: (ServletContext sc,String path)
focal_class.return: ServletResource
focal_class.signature: ServletResource getResource(ServletContext sc,String path)
focal_class.class_method_signature: Servlets.getResource(ServletContext sc,String path, Locale locale)
focal_class.full_signature: public static ServletResource getResource(ServletContext sc,String path, Locale locale)
focal_class.identifier: getResource
focal_class.modifiers: public static
focal_class.parameters: (ServletContext sc,String path, Locale locale)
focal_class.return: ServletResource
focal_class.signature: ServletResource getResource(ServletContext sc,String path, Locale locale)
focal_class.class_method_signature: Servlets.getInitParamsMap(FilterConfig config)
focal_class.full_signature: @SuppressWarnings("unchecked") public static Map<String,String> getInitParamsMap(FilterConfig config)
focal_class.identifier: getInitParamsMap
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (FilterConfig config)
focal_class.return: Map<String,String>
focal_class.signature: Map<String,String> getInitParamsMap(FilterConfig config)
focal_class.class_method_signature: Servlets.getInitParamsMap(ServletConfig config)
focal_class.full_signature: @SuppressWarnings("unchecked") public static Map<String, String> getInitParamsMap(ServletConfig config)
focal_class.identifier: getInitParamsMap
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (ServletConfig config)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getInitParamsMap(ServletConfig config)
focal_class.class_method_signature: Servlets.getInitParamsMap(ServletContext sc)
focal_class.full_signature: @SuppressWarnings("unchecked") public static Map<String, String> getInitParamsMap(ServletContext sc)
focal_class.identifier: getInitParamsMap
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (ServletContext sc)
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getInitParamsMap(ServletContext sc)
focal_class.class_method_signature: Servlets.getRealPath(ServletContext servletContext, String path)
focal_class.full_signature: public static String getRealPath(ServletContext servletContext, String path)
focal_class.identifier: getRealPath
focal_class.modifiers: public static
focal_class.parameters: (ServletContext servletContext, String path)
focal_class.return: String
focal_class.signature: String getRealPath(ServletContext servletContext, String path)
focal_class.class_method_signature: Servlets.getRequestUriWithQueryString(HttpServletRequest request)
focal_class.full_signature: public static String getRequestUriWithQueryString(HttpServletRequest request)
focal_class.identifier: getRequestUriWithQueryString
focal_class.modifiers: public static
focal_class.parameters: (HttpServletRequest request)
focal_class.return: String
focal_class.signature: String getRequestUriWithQueryString(HttpServletRequest request)
focal_class.class_method_signature: Servlets.getRequestPathFromUri(String url)
focal_class.full_signature: public static String getRequestPathFromUri(String url)
focal_class.identifier: getRequestPathFromUri
focal_class.modifiers: public static
focal_class.parameters: (String url)
focal_class.return: String
focal_class.signature: String getRequestPathFromUri(String url)
focal_class.class_method_signature: Servlets.getRequestPathFromUri(String url, String contextPath)
focal_class.full_signature: public static String getRequestPathFromUri(String url, String contextPath)
focal_class.identifier: getRequestPathFromUri
focal_class.modifiers: public static
focal_class.parameters: (String url, String contextPath)
focal_class.return: String
focal_class.signature: String getRequestPathFromUri(String url, String contextPath)
focal_class.class_method_signature: Servlets.isIncludeRequest(ServletRequest request)
focal_class.full_signature: public static boolean isIncludeRequest(ServletRequest request)
focal_class.identifier: isIncludeRequest
focal_class.modifiers: public static
focal_class.parameters: (ServletRequest request)
focal_class.return: boolean
focal_class.signature: boolean isIncludeRequest(ServletRequest request)
focal_class.class_method_signature: Servlets.getTempDir(ServletContext servletContext)
focal_class.full_signature: public static File getTempDir(ServletContext servletContext)
focal_class.identifier: getTempDir
focal_class.modifiers: public static
focal_class.parameters: (ServletContext servletContext)
focal_class.return: File
focal_class.signature: File getTempDir(ServletContext servletContext)
focal_class.class_method_signature: Servlets.getMimeType(ServletContext sc,String filename)
focal_class.full_signature: public static String getMimeType(ServletContext sc,String filename)
focal_class.identifier: getMimeType
focal_class.modifiers: public static
focal_class.parameters: (ServletContext sc,String filename)
focal_class.return: String
focal_class.signature: String getMimeType(ServletContext sc,String filename)
focal_class.class_method_signature: Servlets.Servlets()
focal_class.full_signature: protected  Servlets()
focal_class.identifier: Servlets
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  Servlets()
focal_method.body: public static String getRequestPathFromUri(String url) {
          return getRequestPathFromUri(url, "");
      }
focal_method.class_method_signature: Servlets.getRequestPathFromUri(String url)
focal_method.full_signature: public static String getRequestPathFromUri(String url)
focal_method.identifier: getRequestPathFromUri
focal_method.invocations: getRequestPathFromUri
focal_method.modifiers: public static
focal_method.parameters: (String url)
focal_method.return: String
focal_method.signature: String getRequestPathFromUri(String url)