public void setTransportInDetails()

in modules/sms/src/main/java/org/apache/axis2/transport/sms/gsm/GSMImplManager.java [160:200]


    public void setTransportInDetails(TransportInDescription transportInDetails) throws AxisFault {
        if (transportInDetails.getParameter(SMSTransportConstents.MODEM_GATEWAY_ID) != null) {
            gsmTransportInDetails.setGatewayId((String) transportInDetails.getParameter(
                    SMSTransportConstents.MODEM_GATEWAY_ID).getValue());
        } else {
            throw new AxisFault("GATEWAY ID NOT SET for the SMS transprot");
        }

        if (transportInDetails.getParameter(SMSTransportConstents.COM_PORT) != null) {
            gsmTransportInDetails.setComPort((String) transportInDetails.getParameter(
                    SMSTransportConstents.COM_PORT).getValue());
        } else {
            throw new AxisFault("COM PORT NOT SET for the SMS transprot");
        }
        if (transportInDetails.getParameter(SMSTransportConstents.BAUD_RATE) != null) {
            int bRate = Integer.parseInt((String) transportInDetails.getParameter(
                    SMSTransportConstents.BAUD_RATE).getValue());
            gsmTransportInDetails.setBaudRate(bRate);
        } else {
            throw new AxisFault("BAUD RATE NOT SET for the SMS transprot");
        }
        if (transportInDetails.getParameter(SMSTransportConstents.MANUFACTURER) != null) {
            gsmTransportInDetails.setManufacturer((String) transportInDetails.getParameter(
                    SMSTransportConstents.MANUFACTURER).getValue());
        } else {
            throw new AxisFault("Manufactuer NOT SET for the SMS transprot");
        }

        if (transportInDetails.getParameter(SMSTransportConstents.MODEL) != null) {
            gsmTransportInDetails.setModel((String) transportInDetails.getParameter(
                    SMSTransportConstents.MODEL).getValue());
        } else {
            throw new AxisFault("Model NOT SET for the SMS transprot");
        }

        if (transportInDetails.getParameter(SMSTransportConstents.MODEM_POLL_INTERVAL) != null) {
            String pollTime =  (String) transportInDetails.getParameter(SMSTransportConstents.MODEM_POLL_INTERVAL).
                    getValue();
            gsmTransportInDetails.setModemPollInterval(Long.parseLong(pollTime));
        }
    }