Code example for MalformedURLException

Methods: toString

0
		if(mCurrentRequestElement.webtransportconnection == null){
			try{ 
				mCurrentRequestElement.webtransportconnection = new WebTransport("https://" + mCurrentRequestElement.mHostText + ":" + Integer.toString(mCurrentRequestElement.mPortInt) + "/").getConnection();
				mCurrentRequestElement.webtransportconnection.open();
			} catch(MalformedURLException e){
				Log.e(LOG_TAG,e.toString());
			} catch (WebTransportException e){
				Log.e(LOG_TAG,e.toString());
			} catch (KeyManagementException e){
				Log.e(LOG_TAG,e.toString());
			} catch (IOException e){
				mCurrentRequestElement.webtransportconnection = null;
				throw new IOException();
			} 
		} 
	} 
	 
	public void closeWebTransportConnection(){ 
		if(mCurrentRequestElement.webtransportconnection != null){
			mCurrentRequestElement.webtransportconnection.close();
			mCurrentRequestElement.webtransportconnection = null;