2006-01-01から1年間の記事一覧

Enhancements

JDK6.0 StrictMath copySign() getExponent() nextAfter() nextUp() scalb() JDK 5.0 The BigDecimal class has added support for fixed-precision floating-point computation. Refer to JSR 13. The Math and StrictMath libraries include hyperbolic tr…

主旨

The JavaTM Compiler API is a set of interfaces that describes the functions provided by a JavaTM Language Compiler, and a service provider framework so vendors can provide implementations of these interfaces.The interfaces abstract the way…

DocLink

Spec Package javax.tools

DocLink

The Java™ Programming Language Compiler, javac option

Deployment Descriptor

This chapter specifies the JavaTM Servlet Specification version 2.5 requirements for Web container support of deployment descriptors. The deployment descriptor conveys the elements and configuration information of a Web application between…

Security

Web applications are created by Application Developers who give, sell, or otherwise transfer the application to a Deployer for installation into a runtime environment. Application Developers need to communicate to Deployers how the securit…

Mapping Requests to Servlets

The mapping techniques described in this chapter are required for Web containers mapping client requests to servlets.

Application Lifecycle Events

The application events facility gives the Web Application Developer greater control over the lifecycle of the ServletContext and HttpSession and ServletRequest, allows for better code factorization, and increases efficiency in managing the…

Web Applications

A Web application is a collection of servlets, HTML pages, classes, and other resources that make up a complete application on a Web server. The Web application can be bundled and run on multiple containers from multiple vendors.

Dispatching Requests

When building a Web application, it is often useful to forward processing of a request to another servlet, or to include the output of another servlet in the response. The RequestDispatcher interface provides a mechanism to accomplish this.

Sessions

The Hypertext Transfer Protocol (HTTP) is by design a stateless protocol. To build effective Web applications, it is imperative that requests from a particular client be associated with each other. Many strategies for session tracking have…

Filtering

Filters are Java components that allow on the fly transformations of payload and header information in both the request into a resource and the response from a resource.A filter is a reusable piece of code that can transform the content of…

The Response

The response object encapsulates all information to be returned from the server to the client. In the HTTP protocol, this information is transmitted from the server to the client either by HTTP headers or the message body of the request.

Request data encoding

Currently, many browsers do not send a char encoding qualifier with the Content-Type header, leaving open the determination of the character encoding for reading HTTP requests. The default encoding of a request the container uses to create…

The Request

The request object encapsulates all information from the client request. In the HTTP protocol, this information is transmitted from the client to the server in the HTTP headers and the message body of the request.

Servlet Context Interface

The ServletContext interface defines a servlet’s view of the Web application within which the servlet is running. The Container Provider is responsible for providing an implementation of the ServletContext interface in the servlet containe…

The Servlet Interface

The Servlet interface is the central abstraction of the Java Servlet API. All servlets implement this interface either directly, or more commonly, by extending a class that implements the interface. The two classes in the Java Servlet API …

security restrictions

A servlet container may place security restrictions on the environment in which a servlet executes. In a Java Platform, Standard Edition (J2SE, v.1.3 or above) or Java Platform, Enterprise Edition (Java EE, v.1.3 or above) environment, the…

support protocol

All servlet containers must support HTTP as a protocol for requests and responses, but additional request/response-based protocols such as HTTPS (HTTP over SSL) may be supported. The required versions of the HTTP specification that a conta…

Servlet Container

The servlet container is a part of a Web server or application server that provides the network services over which requests and responses are sent, decodes MIME-based requests, and formats MIME-based responses. A servlet container also co…

EE5 Annotations and Resource Injection

@Resource Annotation @Resources Annotation @InjectionComplete Annotation @EJB Annotation @WebServiceRef Annotation @DeclaresRoles @RunAs Annotation

EE5 Deployment

Deployment Descriptor Elements:The following additional elements exist in the Web application deployment descriptor to meet the requirements of Web containers that are JSP pages enabled or part of a Java EE application server. They are not…

EE5 Security

Propagation of Security Identity in EJBTM Calls: A security identity, or principal, must always be provided for use in a call to an enterprise bean. The default mode in calls to enterprise beans from web applications is for the security id…

EE5 Web Appli Environment

Java EE defines a naming environment that allows applications to easily access resources and external information without explicit knowledge of how the external information is named or organized. As servlets are an integral component type …

EE5 Web Appli Class Loader

Servlet containers that are part of a Java EE product should not allow the application to override Java SE or Java EE platform classes, such as those in java.* and javax.* namespaces, that either Java SE or Java EE do not allow to be modif…

EE5 Web Applications

Java EE technology-compliant containers are required to provide a mechanism by which a deployer can learn what JAR files containing resources and code are available for the Web application. Providing such the mechanism is recommended, but …

EE5 Sessions

Distributed servlet containers that are part of a Java EE implementation must support the mechanism necessary for migrating other Java EE objects from one JVM to another.

spec item

The Servlet Interface Servlet Context The Request The Response Filtering Sessions Dispatching Requests Web Applications Application Lifecycle Events Mapping Requests to Servlets Security Deployment Descriptor EE5 Containers javax.servlet j…

DocLink

Java Servlet Technology Overview JSR-000154 JavaTM Servlet 2.5

DocLink

NIO API Reference Overview New I/O: Additional Documentation Supported Encodings JSR-51: New I/O APIs for the Java Platform