Пример #1
0
 public CMPPQueryResponse getConfig() {
   try {
     CMPPQueryResponse response = new CMPPQueryResponse(0);
     response.gateway_name = m_strName;
     response.session_id = 0;
     response.guid = 0L;
     response.query_time = GatewayType.toString(m_gc.m_nType);
     response.query_type = 4;
     getServiceProvider(response, m_sp);
     if (m_scTransceiver != null) m_scTransceiver.getConfig(response);
     if (m_scReceiver != null) m_scReceiver.getConfig(response);
     return response;
   } catch (Exception e) {
     Log.log(e);
   }
   Log.log("MISCGateway.getConfig : unexpected exit !", 0x2000080000000000L);
   return null;
 }
 /**
  * The type of VPN connection that this customer gateway supports (<code>ipsec.1</code>).
  *
  * <p><b>Constraints:</b><br>
  * <b>Allowed Values: </b>ipsec.1
  *
  * @param type The type of VPN connection that this customer gateway supports (<code>ipsec.1
  *     </code>).
  * @see GatewayType
  */
 public void setType(GatewayType type) {
   this.type = type.toString();
 }
 /**
  * The type of VPN connection that this customer gateway supports (<code>ipsec.1</code>).
  *
  * <p>Returns a reference to this object so that method calls can be chained together.
  *
  * <p><b>Constraints:</b><br>
  * <b>Allowed Values: </b>ipsec.1
  *
  * @param type The type of VPN connection that this customer gateway supports (<code>ipsec.1
  *     </code>).
  * @return A reference to this updated object so that method calls can be chained together.
  * @see GatewayType
  */
 public CreateCustomerGatewayRequest withType(GatewayType type) {
   this.type = type.toString();
   return this;
 }
 /**
  * Constructs a new CreateCustomerGatewayRequest object. Callers should use the setter or fluent
  * setter (with...) methods to initialize any additional object members.
  *
  * @param type The type of VPN connection that this customer gateway supports (<code>ipsec.1
  *     </code>).
  * @param publicIp The Internet-routable IP address for the customer gateway's outside interface.
  *     The address must be static.
  * @param bgpAsn For devices that support BGP, the customer gateway's BGP ASN.
  *     <p>Default: 65000
  */
 public CreateCustomerGatewayRequest(GatewayType type, String publicIp, Integer bgpAsn) {
   this.type = type.toString();
   this.publicIp = publicIp;
   this.bgpAsn = bgpAsn;
 }