|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPClientFactory
An HTTPClientFactory
is used by a TFSTeamProjectCollection
to
lazily create an HttpClient
instance. An HTTPClientFactory
is
supplied to a TFSTeamProjectCollection
by a ConnectionAdvisor
.
TFSTeamProjectCollection
allows only a single thread to use a
HTTPClientFactory
, and TFSTeamProjectCollection
does not
retain any reference to a HTTPClientFactory
after it is finished
using it.
For a default implementation, see DefaultHTTPClientFactory
.
TFSTeamProjectCollection
,
ConnectionAdvisor
,
DefaultHTTPClientFactory
Method Summary | |
---|---|
void |
dispose(HttpClient httpClient)
Called to dispose an HttpClient that was previously obtained from
a call to newHTTPClient() . |
HttpClient |
newHTTPClient()
Called to obtain a new HttpClient instance. |
Method Detail |
---|
HttpClient newHTTPClient()
HttpClient
instance.
HttpClient
(must not be null
)void dispose(HttpClient httpClient)
Called to dispose an HttpClient
that was previously obtained from
a call to newHTTPClient()
.
This method is called by TFSConnection.close()
to
clean up any http client resources. It can be assumed that the specified
HttpClient
instance will no longer be used after calling this
method.
httpClient
- an HttpClient
instance to dispose (must not be
null
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |