com.liferay.portal.service.http
Class CountryServiceHttp
java.lang.Object
com.liferay.portal.service.http.CountryServiceHttp
@ProviderType
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.
|
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 |
CountryServiceHttp
public CountryServiceHttp()
addCountry
public static Country addCountry(HttpPrincipal httpPrincipal,
String name,
String a2,
String a3,
String number,
String idd,
boolean active)
throws PortalException
- Throws:
PortalException
fetchCountry
public static Country fetchCountry(HttpPrincipal httpPrincipal,
long countryId)
fetchCountryByA2
public static Country fetchCountryByA2(HttpPrincipal httpPrincipal,
String a2)
fetchCountryByA3
public static Country fetchCountryByA3(HttpPrincipal httpPrincipal,
String a3)
getCountries
public static List<Country> getCountries(HttpPrincipal httpPrincipal)
getCountries
public static List<Country> getCountries(HttpPrincipal httpPrincipal,
boolean active)
getCountry
public static Country getCountry(HttpPrincipal httpPrincipal,
long countryId)
throws PortalException
- Throws:
PortalException
getCountryByA2
public static Country getCountryByA2(HttpPrincipal httpPrincipal,
String a2)
throws PortalException
- Throws:
PortalException
getCountryByA3
public static Country getCountryByA3(HttpPrincipal httpPrincipal,
String a3)
throws PortalException
- Throws:
PortalException
getCountryByName
public static Country getCountryByName(HttpPrincipal httpPrincipal,
String name)
throws PortalException
- Throws:
PortalException