Friday, May 29, 2009

ICM Classes and Interfaces for the Server Role

Definition

For successful HTTP communication, you require an HTTP request handler in the server. The HTTP request handler (class CL_HTTP_REQUEST_HANDLER in the UML diagram) implements the interface IF_HTTP_EXTENSION.

Use

Using the classes and interfaces described here, you can develop your own HTTP request handler.

Caution

Remember, though, that SAP provides you with a range of HTTP request handlers that meet the most common requirements. You can also adapt these standard handlers for your own specific needs.

This graphic is explained in the accompanying text

Before programming an HTTP request handler of your own, check if a ready-made SAP solution already exists.

Integration

The HTTP request handler (CL_HTTP_REQUEST_HANDLER) uses the interface of the interface IF_HTTP_UTILITY. You can use any of the methods specified here. The HTTP request handler then implements the interface IF_HTTP_EXTENSION, which uses the interface of the interface IF_HTTP_SERVER. The interface IF_HTTP_SERVER is the aggregation of the interfaces IF_HTTP_REQUEST (access to the request attribute) and IF_HTTP_RESPONSE (access to the response attribute). The interfaces IF_HTTP_REQUEST and IF_HTTP_RESPONSE are derived from the interface IF_HTTP_ENTITY.

The UML diagram below shows the design of the various interfaces and their relationships to one another.

This graphic is explained in the accompanying text

1 comment:

seventyros said...

For a Excellent Online Resource for SAP EP and SAP Web Dynpro ABAP, Visit Learn SAP Online

Blog Archive