@Path(value="phonenumberservice") @Produces(value="application/json") @Consumes(value="application/json") public class PhoneNumberService extends Object
| Constructor and Description |
|---|
PhoneNumberService() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatCommon(String planguage,
String pcountry,
String pphoneNumber) |
String |
formatCommonInternational(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatCommonInternationalWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatCommonNational(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatCommonNationalWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatCommonWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatDin5008(String planguage,
String pcountry,
String pphoneNumber) |
String |
formatDin5008International(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatDin5008InternationalWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatDin5008National(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatDin5008NationalWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatDin5008WithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatE123(String planguage,
String pcountry,
String pphoneNumber) |
String |
formatE123International(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatE123InternationalWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatE123National(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatE123NationalWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatE123WithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatMs(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatMsWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatRfc3966(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatRfc3966WithPos(ValueWithPosAndCountry<String> pphoneNumber) |
String |
formatUrl(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<String> |
formatUrlWithPos(ValueWithPosAndCountry<String> pphoneNumber) |
List<de.knightsoftnet.validators.shared.data.PhoneNumberData> |
getSuggestions(String planguage,
String psearch,
int plimit) |
PhoneNumberDataWithFormats |
parseAndFormatPhoneNumber(String planguage,
String pcountry,
String pphoneNumber)
parse and reformat the phone number in all available formats.
|
de.knightsoftnet.validators.shared.data.PhoneNumberData |
parsePhoneNumber(String planguage,
String pcountry,
String pphoneNumber) |
de.knightsoftnet.validators.shared.data.ValueWithPos<de.knightsoftnet.validators.shared.data.PhoneNumberData> |
parsePhoneNumber(ValueWithPosAndCountry<String> pphoneNumber) |
Boolean |
validate(String pcountry,
String pphoneNumber,
Boolean pdin5008,
Boolean pe123,
Boolean puri,
Boolean pms,
Boolean pcommon)
validate a phone number.
|
@GET
@Path(value="parsePhoneNumber")
public de.knightsoftnet.validators.shared.data.PhoneNumberData parsePhoneNumber(@QueryParam(value="language")
String planguage,
@QueryParam(value="country")
String pcountry,
@QueryParam(value="phonenumber")
String pphoneNumber)
@PUT @Path(value="parsewithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<de.knightsoftnet.validators.shared.data.PhoneNumberData> parsePhoneNumber(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="parseandformat") public PhoneNumberDataWithFormats parseAndFormatPhoneNumber(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
planguage - language to usepcountry - default countrypphoneNumber - phone number to format@GET @Path(value="formate123") public String formatE123(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formate123withpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatE123WithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formate123international") public String formatE123International(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formate123internationalwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatE123InternationalWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formate123national") public String formatE123National(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formate123nationalwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatE123NationalWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatdin5008") public String formatDin5008(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatdin5008withpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatDin5008WithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatdin5008international") public String formatDin5008International(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatdin5008internationalwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatDin5008InternationalWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatdin5008national") public String formatDin5008National(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatdin5008nationalwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatDin5008NationalWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatrfc3966") public String formatRfc3966(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatrfc3966withpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatRfc3966WithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatms") public String formatMs(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatmswithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatMsWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formaturl") public String formatUrl(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formaturlwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatUrlWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatcommon") public String formatCommon(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatcommonwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatCommonWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatcommoninternational") public String formatCommonInternational(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatcommoninternationalwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatCommonInternationalWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="formatcommonnational") public String formatCommonNational(@QueryParam(value="language") String planguage, @QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber)
@PUT @Path(value="formatcommonnationalwithpos") public de.knightsoftnet.validators.shared.data.ValueWithPos<String> formatCommonNationalWithPos(ValueWithPosAndCountry<String> pphoneNumber)
@GET @Path(value="getsuggestions") public List<de.knightsoftnet.validators.shared.data.PhoneNumberData> getSuggestions(@QueryParam(value="language") String planguage, @QueryParam(value="search") String psearch, @QueryParam(value="limit") int plimit)
@GET @Path(value="validate") public Boolean validate(@QueryParam(value="country") String pcountry, @QueryParam(value="phonenumber") String pphoneNumber, @QueryParam(value="din5008") Boolean pdin5008, @QueryParam(value="e123") Boolean pe123, @QueryParam(value="uri") Boolean puri, @QueryParam(value="ms") Boolean pms, @QueryParam(value="common") Boolean pcommon)
pcountry - default countrypphoneNumber - phone number to checkpdin5008 - set to true if DIN 5008 format is allowedpe123 - set to true if E123 format is allowedpuri - set to true if URI format is allowedpms - set to true if Microsoft format is allowedpcommon - set to true if common format is allowedCopyright © 2016–2018. All rights reserved.