Head (RabbIT/4)
Date: 2009-12-20

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rabbit.client.sample
Class Head

    java.lang.Object
      rabbit.client.sample.Head

    public class Head

extends Object

A class that performs a set HEAD request to the given urls. This is mostly an example of how to use the rabbit client classes.

Author:
  Robert Olofsson

Constructor Summary
`Head(HeadResponseListener listener)` Create a new HEAD requestor.

Method Summary
`void` | `head(String url)` Run HEAD requests to the given url
`void` | `head(String[] urls)` Run HEAD requests to all the urls given.
`static void` | `main(String[] args)` Run a HEAD request for any url passed in args and then prints the results on System.out.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Head

    public Head(HeadResponseListener listener)
         throws IOException

  Create a new HEAD requestor.

  Throws:
    `IOException`

Method Detail

### main

    public static void main(String[] args)

  Run a HEAD request for any url passed in args and then prints the results on System.out.

### head

    public void head(String[] urls)
              throws IOException

  Run HEAD requests to all the urls given.

  Parameters:
    `urls` - a number of urls.
  Throws:
    `IOException`

### head

    public void head(String url)
              throws IOException

  Run HEAD requests to the given url

  Parameters:
    `url` - the url to run a HEAD reqeusts against.
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD