Package com.casioeurope.mis.edt.type
Class APN.Builder
Object
Builder
- Enclosing class:
- APN
public static final class APN.Builder extends Object
Provides a convenient way to set the fields of a
APN
object when creating a new
instance, following the Builder pattern. The following setting is required to build a APN
object:
name
The example below shows how you might create a new APN
object instance:
// Create a APN object instance with the name "TEST" for use with the german "Vodafone" network
APN apn = APN.setName("TEST")
.setApn("web.vodafone.de")
.setAuthType(APN.AUTH_TYPE_NONE)
.build();
- Since:
- 1.00
-
Method Summary
Modifier and Type Method Description APN
build()
APN.Builder
setApn(String apn)
Sets the APN name of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setAuthType(int authType)
Sets the Authentication Type of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setCurrent(String current)
Sets the APN currently being in use of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setId(int id)
Sets the ID of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setMcc(String mcc)
Sets the Mobile Country Code of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setMmsc(String mmsc)
Sets the MMSC (Multimedia Messaging Service Center) of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setMmsPort(String mmsPort)
Sets the MMS Proxy Port of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setMmsProxy(String mmsProxy)
Sets the MMS Proxy URL of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setMnc(String mnc)
Sets the Mobile Network Code of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setPassword(String password)
Sets the APN password of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setPort(String port)
Sets the Server's Port of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setProxy(String proxy)
Sets the Proxy URL of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setServer(String server)
Sets the APN Server of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setType(String type)
Sets the Type of the Access Point Name (APN) configuration, using Builder pattern method chaining.APN.Builder
setUser(String user)
Sets the Username of the Access Point Name (APN) configuration, using Builder pattern method chaining.
-
Method Details
-
build
This method is used to finally instantiate anAPN
object from thisBuilder
, after all optional chaining has been done.- Returns:
APN
: instance object created from Builder pattern.- Since:
- 1.00
-
setApn
Sets the APN name of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setAuthType
Sets the Authentication Type of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setCurrent
Sets the APN currently being in use of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setId
Sets the ID of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setMcc
Sets the Mobile Country Code of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setMmsPort
Sets the MMS Proxy Port of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setMmsProxy
Sets the MMS Proxy URL of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setMmsc
Sets the MMSC (Multimedia Messaging Service Center) of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setMnc
Sets the Mobile Network Code of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setPassword
Sets the APN password of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setPort
Sets the Server's Port of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setProxy
Sets the Proxy URL of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setServer
Sets the APN Server of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setType
Sets the Type of the Access Point Name (APN) configuration, using Builder pattern method chaining. -
setUser
Sets the Username of the Access Point Name (APN) configuration, using Builder pattern method chaining.
-