|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcitysdk.tourism.client.requests.TourismClientFactory
public class TourismClientFactory
Factory class allowing the creation of a TourismClient. For each link, it makes
only one HTTP call, fills a TourismClient, returns it and saves it. In future creations,
it verifies if it was already called and if positive returns the result without making
a new HTTP call.
| Method Summary | |
|---|---|
TourismClient |
getClient(java.lang.String homeUrl)
Gets a new TourismClient stub. |
static TourismClientFactory |
getInstance()
Gets the instance of this factory. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TourismClientFactory getInstance()
TourismClientFactory.
public TourismClient getClient(java.lang.String homeUrl)
throws java.io.IOException,
UnknownErrorException,
ServerErrorException
TourismClient stub.
homeUrl - the entrypoint of the home URL to query.
java.io.IOException - thrown in case of socket errors.
UnknownErrorException - thrown in case of unforeseen errors.
ServerErrorException - thrown if the server returns a code different from HTTP 200 OK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||