specify the address of the socks proxy the connection should use . read the java networking and proxies guide to understand the proxies complexity . be aware that this method only handles socks proxies , not https proxies . use #withproxy proxy instead . concode_field_sep String KEY_ALGORITHM concode_elem_sep ApnsDelegate delegate concode_elem_sep String KEYSTORE_TYPE concode_elem_sep int feedbackPort concode_elem_sep SSLContext sslContext concode_elem_sep String gatewayHost concode_elem_sep int pooledMax concode_elem_sep String feedbackHost concode_elem_sep boolean errorDetection concode_elem_sep boolean isQueued concode_elem_sep int gatewaPort concode_elem_sep boolean isNonBlocking concode_elem_sep ReconnectPolicy reconnectPolicy concode_elem_sep Socket proxySocket concode_field_sep ApnsServiceBuilder withSandboxDestination concode_elem_sep void checkInitialization concode_elem_sep ApnsServiceBuilder withGatewayDestination concode_elem_sep ApnsServiceBuilder withNoErrorDetection concode_elem_sep ApnsServiceBuilder withReconnectPolicy concode_elem_sep ApnsServiceBuilder withReconnectPolicy concode_elem_sep ApnsServiceBuilder withProductionDestination concode_elem_sep ApnsServiceBuilder asPool concode_elem_sep ApnsServiceBuilder asNonBlocking concode_elem_sep ApnsServiceBuilder withDelegate concode_elem_sep ApnsServiceBuilder withCert concode_elem_sep ApnsServiceBuilder withCert concode_elem_sep ApnsServiceBuilder withSSLContext concode_elem_sep ApnsServiceBuilder asQueued concode_elem_sep ApnsService build concode_elem_sep ApnsServiceBuilder withProxy concode_elem_sep ApnsServiceBuilder withFeedbackDestination concode_elem_sep ApnsServiceBuilder withProxySocket
ApnsServiceBuilder function ( String arg0 , int arg1 ) { Proxy loc0 = new Proxy ( Proxy . Type . SOCKS , new InetSocketAddress ( arg0 , arg1 ) ) ; return withProxy ( loc0 ) ; }