How to get the configured HTTP and HTTPS port numbers in server.xml from Java code at runtime

2014-08-19 Thread Cassian Raja Thomas
In our project, we have implemented SOAP webservices using Apache CXF framework. Clients used to request the server for some command execution. The request consists of host, port and the protocol used for connection. If the client uses a HTTPS configured port number and specify the protocol as

Re: How to get the configured HTTP and HTTPS port numbers in server.xml from Java code at runtime

2014-08-19 Thread André Warnier
Cassian Raja Thomas wrote: In our project, we have implemented SOAP webservices using Apache CXF framework. Clients used to request the server for some command execution. The request consists of host, port and the protocol used for connection. If the client uses a HTTPS configured port number

Re: How to get the configured HTTP and HTTPS port numbers in server.xml from Java code at runtime

2014-08-19 Thread Cassian Raja Thomas
I can retrieve the information prior to getting the connection refused message and then compare the port numbers with the one sent in the request parameters. Thereby, I can handle the exception and throw it with nice error code and message On Tue, Aug 19, 2014 at 12:19 PM, André Warnier

Re: How to get the configured HTTP and HTTPS port numbers in server.xml from Java code at runtime

2014-08-19 Thread David kerber
On 8/19/2014 4:36 AM, Cassian Raja Thomas wrote: I can retrieve the information prior to getting the connection refused message and then compare the port numbers with the one sent in the request parameters. Thereby, I can handle the exception and throw it with nice error code and message Not

Re: How to get the configured HTTP and HTTPS port numbers in server.xml from Java code at runtime

2014-08-19 Thread Cassian Raja Thomas
Yeah.. Now I got it. Thanks for the information On Tue, Aug 19, 2014 at 5:59 PM, David kerber dcker...@verizon.net wrote: On 8/19/2014 4:36 AM, Cassian Raja Thomas wrote: I can retrieve the information prior to getting the connection refused message and then compare the port numbers with