|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.astroshare.astroonline.soap.ClientDaily
public class ClientDaily
Gets daily horoscope from Astro Share soap server.
The daily horoscopes are automatically cached with it's current date. The date of the client machine is used to determine the date for the daily horoscopes.
Daily horoscopes can only be used with a proper license. The Astro Share soap server checks access based on the server's ip address. If the ip addess is not authorized, an access denied is returned.
| Field Summary | |
|---|---|
protected java.lang.String |
horoscopeType
|
protected static org.apache.log4j.Logger |
log
init logging |
protected java.lang.String |
pageTitle
|
protected java.lang.String |
soapMethod
|
| Constructor Summary | |
|---|---|
ClientDaily()
|
|
| Method Summary | |
|---|---|
java.lang.String |
convertDateToString(java.lang.String language,
java.lang.String dateString)
Convert date to title string (shown on horoscope page). |
java.lang.String |
getDateString(int n)
Convert date to string (YYYYMMDD). |
java.util.HashMap<java.lang.String,java.lang.Object> |
getHoroscopes(java.lang.String language,
java.lang.String dateString)
Get horoscope for specific language and date and cache in hashmap. |
protected java.lang.String |
getId(java.lang.String language,
java.lang.String dateString)
Create unique ID to save in and retrieve from hashmap. |
java.lang.String |
getPageTitle(java.lang.String language,
int sign)
Gives the title displayed on the horoscope page. |
java.lang.String |
getText(java.lang.String language,
int sign,
java.lang.String dateString)
Get horoscope text shown on horoscope page. |
java.lang.String |
getTitle(java.lang.String language,
java.lang.String dateString)
Get horoscope title shown on horoscope page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
protected java.lang.String soapMethod
protected java.lang.String pageTitle
protected java.lang.String horoscopeType
| Constructor Detail |
|---|
public ClientDaily()
| Method Detail |
|---|
protected java.lang.String getId(java.lang.String language,
java.lang.String dateString)
Create unique ID to save in and retrieve from hashmap.
language - LanguagedateString - Date (in string format)
public java.lang.String convertDateToString(java.lang.String language,
java.lang.String dateString)
Convert date to title string (shown on horoscope page).
language - LanguagedateString - Date (in string format)
public java.lang.String getDateString(int n)
Convert date to string (YYYYMMDD).
n - Number of days from now (can also be negative)
public java.lang.String getText(java.lang.String language,
int sign,
java.lang.String dateString)
Get horoscope text shown on horoscope page.
language - Languagesign - Signnumber (1<=signNumber<=12)dateString - Date (in string format)
public java.lang.String getTitle(java.lang.String language,
java.lang.String dateString)
Get horoscope title shown on horoscope page.
language - LanguagedateString - Date (in string format)
public java.lang.String getPageTitle(java.lang.String language,
int sign)
Gives the title displayed on the horoscope page.
public java.util.HashMap<java.lang.String,java.lang.Object> getHoroscopes(java.lang.String language,
java.lang.String dateString)
Get horoscope for specific language and date and cache in hashmap.
language - LanguagedateString - Date (in string format)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)