Java EE 企业应用系统设计 - HTTP 请求处理编程
browser = request.getHeader("User-Agent"); ▶ int getIntHeader(String name) 1 int size = request.getIntHeader("Content-Length"); ▶ long getDateHeader(String name) 1 long datetime = request.getDateHe getDateHeader("If-Modified-Since"); ▶ Enumeration getHeaderNames() 1 for (Enumeration e = request.getHeaderNames(); e.hasMoreElements(); ) { 2 String headerName = (String) e.nextElement(); 3 System.out.println("Name␣=␣" 参数 1 productSearch.do?productName=Acer 以下代码可以取得以上的参数名为 productName 的数据: 1 String productName = request.getParameter("productName"); 大纲 HTTP 请求内容 Java EE 请求对象 取得请求中包含的提交参数数据 O String[] getParameterValues(String0 码力 | 27 页 | 565.27 KB | 1 年前3Java 应用与开发 - 异常处理
0 码力 | 33 页 | 626.40 KB | 1 年前3Java EE 企业应用系统开发 - HTTP 响应处理编程
0 码力 | 26 页 | 575.28 KB | 1 年前3Spring Framwork Web on Reactive Stack v5.3.36 SNAPSHOT
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 1.3.4. Result Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 1.4.2. Request Mapping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 182 页 | 2.52 MB | 1 年前3Spring Framework 2.5.5 Changelog
out MessageSourceSupport base class from AbstractMessageSource, providing common MessageFormat handling * DelegatingMessageSource resolves message arguments in default messages even if there is no parent CodebaseAwareObjectInputStream in RMI support * re-enabled PathMatchingResourcePatternResolver's JarURLConnection handling (accidentally disabled in 2.5.4) Package org.springframework.ejb * "jee:local/remote-slsb" accepts class * MessageListenerAdapter and JmsInvokerServiceExporter use message id as correlation id if no request correlation id set Package org.springframework.jmx * MBeanExporter performs default MBeanServer0 码力 | 101 页 | 291.00 KB | 1 年前3Spring Framework 2.5.6 Changelog
cleans up cached dependency information when destroying a bean * AbstractBeanFactory rejects getBean request with arguments in case of a pre- existing singleton of same name as well * AbstractAutowireCapableBeanFactory file nor a directory) Package org.springframework.web * HttpRequestHandlerServlet propagates HTTP request locale into Spring's LocaleContextHolder * revised "WebUtils.extractFilenameFromUrlPath" to search (as accepted by most servlet containers) * DispatcherServlet removes error-view-driven servlet request attributes after rendering (for Tomcat compatibility) * exposed "getParamName()" method on LocaleChangeInterceptor0 码力 | 106 页 | 302.13 KB | 1 年前3Spring Framework 2.5.6 Changelog
cleans up cached dependency information when destroying a bean * AbstractBeanFactory rejects getBean request with arguments in case of a pre- existing singleton of same name as well * AbstractAutowireCapableBeanFactory file nor a directory) Package org.springframework.web * HttpRequestHandlerServlet propagates HTTP request locale into Spring's LocaleContextHolder * revised "WebUtils.extractFilenameFromUrlPath" to search (as accepted by most servlet containers) * DispatcherServlet removes error-view-driven servlet request attributes after rendering (for Tomcat compatibility) * exposed "getParamName()" method on LocaleChangeInterceptor0 码力 | 106 页 | 305.07 KB | 1 年前3Spring Framework 1.2.x Changelog
JdkDynamicAopProxy's "Method.setAccessible" handling to avoid unnecessary calls * Cglib2AopProxy throws AopConfigException instead of AspectException, for better root cause handling * CGLIB proxies handle "hashCode" "newFileUpload" template method for any FileUpload instance * refined FrameworkServlet to log a request handling failure at debug level rather than error level * added "propertyEditorRegistrar" bean property reference * refined SimpleMappingExceptionResolver to only apply a "defaultStatusCode" to a top-level request (not to an include) * added "clearCache()" method to AbstractCachingViewResolver, for removing all0 码力 | 94 页 | 267.57 KB | 1 年前3Spring Framework 1.1.5 Changelog
always execute before resource cleanup * added "lookupSessionFactory(request)" callback to OpenSessionInViewFilter, for request-dependent SessionFactory lookup * SessionFactoryUtils/PersistenceManag * DispatcherServlet does not override "doHead" anymore, leveraging HttpServlet's default "HEAD" handling via "doGet" * factored out protected "resolveViewName" method from DispatcherServlet's "render" supported methods (in addition to "GET" and "POST") * added overloaded "showForm" version with request, response, errors and control model to SimpleFormController * added "suppressValidation" calls0 码力 | 57 页 | 166.71 KB | 1 年前3Spring Framework 1.2.7 Changelog
LocalSessionFactoryBean offers protected "executeSchemaStatement" method for overriding the failure handling * added "configLocations" property to LocalSessionFactoryBean for Hibernate3, allowing to load NestedServletException wherever a root cause gets wrapped by a ServletException (for nicer root cause handling) * "contextConfigLocation" params in "web.xml" support "${...}" style placeholders for system properties perform auto-detachment of the result * changed TopLink ServerSessionFactory's managed client handling to proxy-based, in base class AbstractSessionFactory * added support for TopLink SessionBroker to0 码力 | 87 页 | 248.22 KB | 1 年前3
共 404 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41