-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProxyClientThread.ctxt
17 lines (17 loc) · 1.12 KB
/
ProxyClientThread.ctxt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#BlueJ class context
comment0.params=socket\ cache
comment0.target=ProxyClientThread(java.net.Socket,\ Cache)
comment0.text=\r\n\ Recebe\ os\ dados\ da\ class\ proxythread\ para\ poder\ depois\ tratar\ os\ mesmos.\r\n
comment1.params=
comment1.target=void\ readRequete()
comment1.text=\r\n\ Faz\ o\ tratamento\ do\ pedido\r\n\ V\u00EA\ se\ exite\ na\ cache\ e\ caso\ existe\ devolve\ para\ o\ browser,\ nesse\ caso\ o\ cliente\r\n\ Caso\ n\u00E3o\ existe\ vai\ buscar\ as\ informa\u00E7\u00F5es\ ao\ host,\ mete\ as\ na\ cache\ e\ depois\ devolve\ as\ mesma\ para\ o\ browser,\ ,\ nesse\ caso\ o\ cliente.\r\n
comment2.params=requestedObject
comment2.target=void\ discoverHost(java.lang.String)
comment2.text=\r\n\ Vai\ permitir\ saber\ qual\ a\ porta\ e\ com\ qual\ host\ vamos\ enviar\ e\ receber\ os\ dados\r\n
comment3.params=from
comment3.target=void\ sendToBrowser(java.io.DataInputStream)
comment3.text=\r\n\ Recebe\ dados\ e\ envia\ para\ o\ browser\r\n
comment4.params=
comment4.target=void\ run()
comment4.text=\r\n\ Lan\u00E7a\ o\ metodoa\ reaRequete\ e\ ao\ fim\ fecha\ todas\ as\ linhas\ de\ dados.\r\n
numComments=5