public static int getOptionalParamInt(ParameterInclude paramInclude, String paramName, int defaultValue) throws AxisFault { Integer value = getOptionalParamInt(paramInclude, paramName); return value == null ? defaultValue : value.intValue(); }
public static int getOptionalParamInt(ParameterInclude paramInclude, String paramName, int defaultValue) throws AxisFault { Integer value = getOptionalParamInt(paramInclude, paramName); return value == null ? defaultValue : value.intValue(); }
@Override public boolean loadConfiguration(ParameterInclude params) throws AxisFault { port = ParamUtils.getOptionalParamInt(params, UDPConstants.PORT_KEY, -1); if (port == -1) { return false; } maxPacketSize = ParamUtils.getOptionalParamInt(params, UDPConstants.MAX_PACKET_SIZE_KEY, UDPConstants.DEFAULT_MAX_PACKET_SIZE); return super.loadConfiguration(params); }
@Override public boolean loadConfiguration(ParameterInclude params) throws AxisFault { port = ParamUtils.getOptionalParamInt(params, UDPConstants.PORT_KEY, -1); if (port == -1) { return false; } maxPacketSize = ParamUtils.getOptionalParamInt(params, UDPConstants.MAX_PACKET_SIZE_KEY, UDPConstants.DEFAULT_MAX_PACKET_SIZE); return super.loadConfiguration(params); }
@Override public boolean loadConfiguration(ParameterInclude params) throws AxisFault { port = ParamUtils.getOptionalParamInt(params, UDPConstants.PORT_KEY, -1); if (port == -1) { return false; } maxPacketSize = ParamUtils.getOptionalParamInt(params, UDPConstants.MAX_PACKET_SIZE_KEY, UDPConstants.DEFAULT_MAX_PACKET_SIZE); return super.loadConfiguration(params); }
public static int getRequiredParamInt(ParameterInclude paramInclude, String paramName) throws AxisFault { Integer value = getOptionalParamInt(paramInclude, paramName); if (value == null) { throw new AxisFault("Cannot find parameter '" + paramName + "' for " + getDescriptionFor(paramInclude)); } else { return value.intValue(); } }
public static int getRequiredParamInt(ParameterInclude paramInclude, String paramName) throws AxisFault { Integer value = getOptionalParamInt(paramInclude, paramName); if (value == null) { throw new AxisFault("Cannot find parameter '" + paramName + "' for " + getDescriptionFor(paramInclude)); } else { return value.intValue(); } }
public boolean loadConfiguration(ParameterInclude params) throws AxisFault { port = ParamUtils.getOptionalParamInt(params, TCPConstants.PARAM_PORT, -1); if (port == -1) { return false; } contentType = ParamUtils.getOptionalParam(params, TCPConstants.PARAM_CONTENT_TYPE); if (contentType == null) { contentType = TCPConstants.TCP_DEFAULT_CONTENT_TYPE; } host = ParamUtils.getOptionalParam(params, TCPConstants.PARAM_HOST); backlog = ParamUtils.getOptionalParamInt(params, TCPConstants.PARAM_BACKLOG, TCPConstants.TCP_DEFAULT_BACKLOG); return true; }
public boolean loadConfiguration(ParameterInclude params) throws AxisFault { port = ParamUtils.getOptionalParamInt(params, TCPConstants.PARAM_PORT, -1); if (port == -1) { return false; } contentType = ParamUtils.getOptionalParam(params, TCPConstants.PARAM_CONTENT_TYPE); if (contentType == null) { contentType = TCPConstants.TCP_DEFAULT_CONTENT_TYPE; } host = ParamUtils.getOptionalParam(params, TCPConstants.PARAM_HOST); backlog = ParamUtils.getOptionalParamInt(params, TCPConstants.PARAM_BACKLOG, TCPConstants.TCP_DEFAULT_BACKLOG); return true; }