mardi 5 février 2019

Proxy Pattern - Does Proxy or RealSubject Return The Request to the Client?

I'm learning about design patterns right now, specifically the Proxy pattern. What I don't understand is the UML class diagram.

I read somewhere that any requests that go from the client to the proxy is routed to the RealSubject. Then the RealSubject processes the request, sends the response to the proxy, and the proxy returns the response to the client.

But on the UML class diagrams, it shows that RealSubject returns the request to the client, instead of the proxy.

Aucun commentaire:

Enregistrer un commentaire