摘要 |
The object of the invention is a method for filtering messages in a gateway, which receives and processes a specific first message that comes from a wireless terminal, and which gateway retrieves a specific second message from an origin server and supplies it to the wireless terminal. Said first and second messages belong to a specific message type of a set of message types known to the gateway. In the method, a filter chain (WML_Chain) is determined for each message type known to the gateway, which filter chain determines filters (31 - 35) for filtering a message that belongs to respective message type. The filters (31 - 35) have, in the filter chain, a specific mutual order. Furthermore, in the method, a message is received into the gateway and the message type of the message that arrived at the gateway is determined. In addition, said message is filtered in the filters (31 - 35) of the filter chain that is defined for the message type of the said message, in the order determined in the filter chain in question. The object of the invention is also a gateway for filtering a content according to the method presented above, and a computer program product for implementing said gateway. |