Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:55:12+00:00 2026-06-17T10:55:12+00:00

I am trying to create a java application to read the information from ARIN

  • 0

I am trying to create a java application to read the information from ARIN using an IP Address. I see ARIN is using RESTful Web Services to get the IP information but I am not sure what I need to do to start. Some people are talking about RESTLET, other people about JAX-RS,etc. Can you please help me to take me in the right direction? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:55:14+00:00Added an answer on June 17, 2026 at 10:55 am

    Restlet also has a client API to interact with a remote RESTful application. See the classes Client, ClientResource for more details. For this, you need to have following jar files from Restlet distribution:

    • org.restlet: main Restlet jar
    • org.restlet.ext.xml: Restlet support of XML
    • org.restlet.ext.json: Restlet support of JSON. In this case, the JSON jar present in libraries folder is also required.

    If I use the documentation located at this address https://www.arin.net/resources/whoisrws/whois_api.html#whoisrws. Here is a simple Restlet code you can use:

    ClientResource cr = new ClientResource("http://whois.arin.net/rest/poc/KOSTE-ARIN");
    Representation repr = cr.get();
    // Display the XML content
    System.out.println(repr.getText());
    

    or

    ClientResource cr = new ClientResource("http://whois.arin.net/rest/poc/KOSTE-ARIN.txt");
    Representation repr = cr.get();
    // Display the text content
    System.out.println(repr.getText());
    

    Restlet also provides some support at XML level. So you can have access to hints contained in the XML in a simple way, as described below:

    ClientResource cr = new ClientResource("http://whois.arin.net/rest/poc/KOSTE-ARIN");
    Representation repr = cr.get();
    DomRepresentation dRepr = new DomRepresentation(repr);
    Node firstNameNode = dRepr.getNode("//firstName");
    Node lastNameNode = dRepr.getNode("//lastName");
    System.out.println(firstNameNode.getTextContent()+" "+lastNameNode.getTextContent());
    

    Note that you can finally handle content negotiation (conneg) since it seems supported by your REST service:

    ClientResource cr = new ClientResource("http://whois.arin.net/rest/poc/KOSTE-ARIN");
    Representation repr = cr.get(MediaType.APPLICATION_JSON);
    

    In this case, your representation object contains JSON formatted data. In the same way than the DomRepresentation, there is a JsonRepresentation to inspect this representation content.

    Hope it helps you.
    Thierry

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a Java Application that retrieves information from a webpage.
I am trying to create my first GUI application using (Java + Eclipse +
I m trying to create a desktop application using swing in java, which allows
I'm trying to create image from SQLite database in Java Swing application. But it
I'm trying to create a web user interface for a Java application. The user
I'm trying to create a Java swing application and I'm trying to use a
I am trying to create a Debian package for a Java application. In my
I'm trying to have an email-processing Java application move all processed mails from an
I new to web-start and We are using exe4j to create executable from One-jar.
I am trying to silent print PDF files from within a java application (more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.