Start of Content Area

Background documentation Classes and Interfaces for the Server Role  Locate the document in its SAP Library structure

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

 

Additional Information

The following sections describe the implemented interfaces in more detail:

·        IF_HTTP_SERVER

·        IF_HTTP_RESPONSE und IF_HTTP_REQUEST

·        IF_HTTP_ENTITY

·        IF_HTTP_EXTENSION

·        IF_HTTP_UTILITY

 

End of Content Area