A method is disclosed for performing message and transformation adapter
functions in a network element on behalf of an application. According to
one aspect, the network element determines an application layer message
that is collectively contained in payload portions of data packets. The
application layer message conforms to an application layer protocol, such
as Hypertext Transfer Protocol (HTTP). The network element determines the
application layer protocol to which the application layer message
conforms. Based on the application layer protocol, an adapter is selected
from among a plurality of adapters that are accessible to the network
element. The application layer message is provided to the selected
adapter, which converts the application layer message into a "canonical"
message that is not specific to any particular application layer
protocol.