private static synchronized HttpTransport getStaticHttpTransport ( ) throws IOException , GeneralSecurityException { if ( staticHttpTransport == null ) { staticHttpTransport = HttpTransportFactory . createHttpTransport ( HttpTransportType . JAVA_NET ) ; } return staticHttpTransport ; }
Returns shared staticHttpTransport instance ; initializes staticHttpTransport if it hasn t already been initialized .