}
private void configurePort(ConfigurationContext configCtx) {
TransportInDescription trsIn = configCtx.getAxisConfiguration().getTransportsIn().get("http");
if (trsIn != null) {
String port = System.getProperty("http_port");
if (port != null) {
try {
new Integer(port);
trsIn.getParameter("port").setValue(port);
} catch (NumberFormatException e) {
log.error("Given port is not a valid integer. Using 9000 for port.");
trsIn.getParameter("port").setValue("9000");
}
} else {
trsIn.getParameter("port").setValue("9000");
}
}
TransportInDescription httpsTrsIn = configCtx.getAxisConfiguration().
getTransportsIn().get("https");
if (httpsTrsIn != null) {
String port = System.getProperty("https_port");
if (port != null) {
try {
new Integer(port);
httpsTrsIn.getParameter("port").setValue(port);
} catch (NumberFormatException e) {
log.error("Given port is not a valid integer. Using 9000 for port.");
httpsTrsIn.getParameter("port").setValue("9002");
}
} else {
httpsTrsIn.getParameter("port").setValue("9002");
}
}
}