Package com.casioeurope.mis.edt.type
Class APN
Object
APN
public class APN extends Object
A set of parameters used to hand over to the Access Point Name (APN) configuration related methods of the CASIO Enterprise Developer Tools:
Since the above mentioned methods use a variable set of parameters with overlapping parameter types, overloading methods or using variable argument lists isn't feasible.
Instead, instances of this class hold sets of all required parameters for these methods.
Use APN.Builder
to create new instances.
- Since:
- 1.00
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
APN.Builder
Provides a convenient way to set the fields of aAPN
object when creating a new instance, following the Builder pattern. -
Field Summary
Fields Modifier and Type Field Description static int
AUTH_TYPE_CHAP
Authentication type for CHAP. - this is one of the possible values of theauthType
field of the Access Point Name (APN) configurationstatic int
AUTH_TYPE_NONE
No Authentication type - this is one of the possible values of theauthType
field of the Access Point Name (APN) configurationstatic int
AUTH_TYPE_PAP
Authentication type for PAP. - this is one of the possible values of theauthType
field of the Access Point Name (APN) configurationstatic int
AUTH_TYPE_PAP_OR_CHAP
Authentication type for either PAP or CHAP. - this is one of the possible values of theauthType
field of the Access Point Name (APN) configurationstatic int
AUTH_TYPE_UNKNOWN
Unknown Authentication type - this is one of the possible values of theauthType
field of the Access Point Name (APN) configurationstatic int
INVALID_APN
Invalid Authentication type (for internal use only). - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration -
Method Summary
Modifier and Type Method Description String
getApn()
Returns the APN name of the Access Point Name (APN) configuration.int
getAuthType()
Returns the Authentication Type of the Access Point Name (APN) configuration.String
getCurrent()
Returns the APN currently being in use of the Access Point Name (APN) configuration.int
getId()
Returns the "id" field of the Access Point Name (APN) configuration.String
getMcc()
Returns the Mobile Country Code of the Access Point Name (APN) configuration.String
getMmsc()
Returns the MMSC (Multimedia Messaging Service Center) of the Access Point Name (APN) configuration.String
getMmsPort()
Returns the MMS Proxy Port of the Access Point Name (APN) configuration.String
getMmsProxy()
Returns the MMS Proxy URL of the Access Point Name (APN) configuration.String
getMnc()
Returns the Mobile Network Code of the Access Point Name (APN) configuration.String
getName()
Returns the name of the Access Point Name (APN) configuration.String
getPassword()
Returns APN password of the Access Point Name (APN) configuration.String
getPort()
Returns the Server's Port of the Access Point Name (APN) configuration.String
getProxy()
Returns the Proxy URL of the Access Point Name (APN) configuration.String
getServer()
Returns the APN Server of the Access Point Name (APN) configuration.String
getType()
Returns the Type of the Access Point Name (APN) configuration.String
getUser()
RReturns the APN username of the Access Point Name (APN) configuration.static APN.Builder
setName(String name)
Since APN uses the Builder pattern with a mandatoryname
field, there's no public constructor available.
Instead, this method is used to create a new instance of the Builder of this class.
In order to finally instantiate aAPN
object, call thebuild()
method of the builder when all optional chaining has been done.
-
Field Details
-
AUTH_TYPE_UNKNOWN
public static final int AUTH_TYPE_UNKNOWNUnknown Authentication type - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration- Since:
- 1.00
- See Also:
- Constant Field Values
-
AUTH_TYPE_NONE
public static final int AUTH_TYPE_NONENo Authentication type - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration- Since:
- 1.00
- See Also:
- Constant Field Values
-
AUTH_TYPE_PAP
public static final int AUTH_TYPE_PAPAuthentication type for PAP. - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration- Since:
- 1.00
- See Also:
- Constant Field Values
-
AUTH_TYPE_CHAP
public static final int AUTH_TYPE_CHAPAuthentication type for CHAP. - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration- Since:
- 1.00
- See Also:
- Constant Field Values
-
AUTH_TYPE_PAP_OR_CHAP
public static final int AUTH_TYPE_PAP_OR_CHAPAuthentication type for either PAP or CHAP. - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration- Since:
- 1.00
- See Also:
- Constant Field Values
-
INVALID_APN
public static final int INVALID_APNInvalid Authentication type (for internal use only). - this is one of the possible values of theauthType
field of the Access Point Name (APN) configuration- Since:
- 1.00
- See Also:
- Constant Field Values
-
-
Method Details
-
setName
Since APN uses the Builder pattern with a mandatoryname
field, there's no public constructor available.
Instead, this method is used to create a new instance of the Builder of this class.
In order to finally instantiate aAPN
object, call thebuild()
method of the builder when all optional chaining has been done. -
getApn
Returns the APN name of the Access Point Name (APN) configuration. -
getAuthType
public int getAuthType()Returns the Authentication Type of the Access Point Name (APN) configuration.- Returns:
int
: The Authentication Type of the Access Point Name (APN) configuration.
If this field has not been set, the return value is an emptyString
.- Since:
- 1.00
-
getCurrent
Returns the APN currently being in use of the Access Point Name (APN) configuration. -
getId
public int getId()Returns the "id" field of the Access Point Name (APN) configuration.- Returns:
int
: The "id" field of the Access Point Name (APN) configuration orINVALID_APN (-1)
if no ID has been set.- Since:
- 1.00
-
getMcc
Returns the Mobile Country Code of the Access Point Name (APN) configuration. -
getMmsPort
Returns the MMS Proxy Port of the Access Point Name (APN) configuration. -
getMmsProxy
Returns the MMS Proxy URL of the Access Point Name (APN) configuration. -
getMmsc
Returns the MMSC (Multimedia Messaging Service Center) of the Access Point Name (APN) configuration. -
getMnc
Returns the Mobile Network Code of the Access Point Name (APN) configuration. -
getName
Returns the name of the Access Point Name (APN) configuration. -
getPassword
Returns APN password of the Access Point Name (APN) configuration. -
getPort
Returns the Server's Port of the Access Point Name (APN) configuration. -
getProxy
Returns the Proxy URL of the Access Point Name (APN) configuration. -
getServer
Returns the APN Server of the Access Point Name (APN) configuration. -
getType
Returns the Type of the Access Point Name (APN) configuration.- Returns:
String
: The Type of the Access Point Name (APN) configuration.
If this field has not been set, the return value is an emptyString
.- Since:
- 1.00
- API Note:
- Valid settings are e.g. "default", "supl" and "mms".
Multiple strings are separated by comma "," character. Default setting is "default,supl".
-
getUser
RReturns the APN username of the Access Point Name (APN) configuration.
-