private Transport createTransport ( final String profile ) { if ( getCaCapabilities ( profile ) . isPostSupported ( ) ) { return transportFactory . forMethod ( Method . POST , url ) ; } else { return transportFactory . forMethod ( Method . GET , url ) ; } }
Creates a new transport based on the capabilities of the server .