× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



SRamanujan=dsjOEj4+x6mynpMCO8VUG9BPR1lH4CV8@public.gmane.org wrote:
>
> I am new to java calls from rpgle.  I was trying to validate a URL and get 
>the server and port from the url using getHost and getPort methods.  I could 
>get up to URL constructor, but when I call the getHost I seem to have 
>problems.  I keep getting getHost call error or class error.
>
>  D Class           C                   'java.net.URL'
>  D Class2          C                   'url'
>
>   *  java method
>  D gethost         PR           100    ExtProc(*JAVA:Class2:'getHost')
>  D                                     STATIC
>

It would be useful if you posted the errors you are getting.

What is the 'url' class?  getHost() is a non-static method in
java.net.URL.  Is it also static a method in class 'url'?

Here's a tip: in your RPG code, always put the Java method information
in a comment.

 * Class: java.net.URL
 * Method: String getHost()
D getHost         PR           100
ExtProc(*JAVA:'java.net.URL':'getHost')

Barbara Morris




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.