public class CountryServiceHttp
extends java.lang.Object
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.
CountryServiceSoap| Constructor and Description |
|---|
CountryServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static Country |
addCountry(HttpPrincipal httpPrincipal,
java.lang.String name,
java.lang.String a2,
java.lang.String a3,
java.lang.String number,
java.lang.String idd,
boolean active) |
static Country |
fetchCountry(HttpPrincipal httpPrincipal,
long countryId) |
static Country |
fetchCountryByA2(HttpPrincipal httpPrincipal,
java.lang.String a2) |
static Country |
fetchCountryByA3(HttpPrincipal httpPrincipal,
java.lang.String a3) |
static java.util.List<Country> |
getCountries(HttpPrincipal httpPrincipal) |
static java.util.List<Country> |
getCountries(HttpPrincipal httpPrincipal,
boolean active) |
static Country |
getCountry(HttpPrincipal httpPrincipal,
long countryId) |
static Country |
getCountryByA2(HttpPrincipal httpPrincipal,
java.lang.String a2) |
static Country |
getCountryByA3(HttpPrincipal httpPrincipal,
java.lang.String a3) |
static Country |
getCountryByName(HttpPrincipal httpPrincipal,
java.lang.String name) |
public static Country addCountry(HttpPrincipal httpPrincipal, java.lang.String name, java.lang.String a2, java.lang.String a3, java.lang.String number, java.lang.String idd, boolean active) throws PortalException
PortalExceptionpublic static Country fetchCountry(HttpPrincipal httpPrincipal, long countryId)
public static Country fetchCountryByA2(HttpPrincipal httpPrincipal, java.lang.String a2)
public static Country fetchCountryByA3(HttpPrincipal httpPrincipal, java.lang.String a3)
public static java.util.List<Country> getCountries(HttpPrincipal httpPrincipal)
public static java.util.List<Country> getCountries(HttpPrincipal httpPrincipal, boolean active)
public static Country getCountry(HttpPrincipal httpPrincipal, long countryId) throws PortalException
PortalExceptionpublic static Country getCountryByA2(HttpPrincipal httpPrincipal, java.lang.String a2) throws PortalException
PortalExceptionpublic static Country getCountryByA3(HttpPrincipal httpPrincipal, java.lang.String a3) throws PortalException
PortalExceptionpublic static Country getCountryByName(HttpPrincipal httpPrincipal, java.lang.String name) throws PortalException
PortalException