Liferay 6.2-ce-ga5

com.liferay.portal.service.http
Class CountryServiceHttp

java.lang.Object
  extended by com.liferay.portal.service.http.CountryServiceHttp

public class CountryServiceHttp
extends Object

Provides the HTTP utility for the CountryServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
CountryServiceSoap, HttpPrincipal, CountryServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
CountryServiceHttp()
           
 
Method Summary
static Country addCountry(HttpPrincipal httpPrincipal, String name, String a2, String a3, String number, String idd, boolean active)
           
static Country fetchCountry(HttpPrincipal httpPrincipal, long countryId)
           
static Country fetchCountryByA2(HttpPrincipal httpPrincipal, String a2)
           
static Country fetchCountryByA3(HttpPrincipal httpPrincipal, String a3)
           
static List<Country> getCountries(HttpPrincipal httpPrincipal)
           
static List<Country> getCountries(HttpPrincipal httpPrincipal, boolean active)
           
static Country getCountry(HttpPrincipal httpPrincipal, long countryId)
           
static Country getCountryByA2(HttpPrincipal httpPrincipal, String a2)
           
static Country getCountryByA3(HttpPrincipal httpPrincipal, String a3)
           
static Country getCountryByName(HttpPrincipal httpPrincipal, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryServiceHttp

public CountryServiceHttp()
Method Detail

addCountry

public static Country addCountry(HttpPrincipal httpPrincipal,
                                 String name,
                                 String a2,
                                 String a3,
                                 String number,
                                 String idd,
                                 boolean active)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

fetchCountry

public static Country fetchCountry(HttpPrincipal httpPrincipal,
                                   long countryId)
                            throws SystemException
Throws:
SystemException

fetchCountryByA2

public static Country fetchCountryByA2(HttpPrincipal httpPrincipal,
                                       String a2)
                                throws SystemException
Throws:
SystemException

fetchCountryByA3

public static Country fetchCountryByA3(HttpPrincipal httpPrincipal,
                                       String a3)
                                throws SystemException
Throws:
SystemException

getCountries

public static List<Country> getCountries(HttpPrincipal httpPrincipal)
                                  throws SystemException
Throws:
SystemException

getCountries

public static List<Country> getCountries(HttpPrincipal httpPrincipal,
                                         boolean active)
                                  throws SystemException
Throws:
SystemException

getCountry

public static Country getCountry(HttpPrincipal httpPrincipal,
                                 long countryId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getCountryByA2

public static Country getCountryByA2(HttpPrincipal httpPrincipal,
                                     String a2)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCountryByA3

public static Country getCountryByA3(HttpPrincipal httpPrincipal,
                                     String a3)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCountryByName

public static Country getCountryByName(HttpPrincipal httpPrincipal,
                                       String name)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5