rjw.dc.http
Class IMDBQuery

java.lang.Object
  |
  +--rjw.dc.http.IMDBQuery

public class IMDBQuery
extends java.lang.Object

Access www.imdb.com to gather movie specific information

Since:
1.2
Version:
3.03
Author:
Robert-Jan van der Waals

Field Summary
static java.lang.Object _ACTORS
           
static java.lang.Object _COUNTRY
           
static java.lang.Object _DIRECTOR
           
static java.lang.Object _GENRE
           
static java.lang.Object _ID
           
static java.lang.Object _PLACE
           
static java.lang.Object _PLOT
           
static java.lang.Object _PLOTURL
           
static java.lang.Object _RATING
           
static java.lang.Object _RUNTIME
           
static java.lang.Object _TAGLINE
           
static java.lang.Object _TAGLINEURL
           
static java.lang.Object _TITLE
           
static java.lang.Object _URL
           
static java.lang.Object _VOTES
           
static java.lang.Object _WRITER
           
static java.lang.Object _YEAR
           
 
Constructor Summary
IMDBQuery(java.lang.String searchString)
          initializes the IMDB query
 
Method Summary
 void fillImdbData(java.lang.String sID, HttpConnection connection)
          Reads the information from www.imdb.com
 java.lang.String[] getIDs(HttpConnection connection)
          Searches for the maching ID's from the search result(s)
 java.lang.String getValue(java.lang.Object identifier)
           
 java.lang.String trim(java.lang.String sRaw)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ID

public static final java.lang.Object _ID

_URL

public static final java.lang.Object _URL

_TITLE

public static final java.lang.Object _TITLE

_YEAR

public static final java.lang.Object _YEAR

_DIRECTOR

public static final java.lang.Object _DIRECTOR

_WRITER

public static final java.lang.Object _WRITER

_GENRE

public static final java.lang.Object _GENRE

_TAGLINE

public static final java.lang.Object _TAGLINE

_TAGLINEURL

public static final java.lang.Object _TAGLINEURL

_PLOT

public static final java.lang.Object _PLOT

_PLOTURL

public static final java.lang.Object _PLOTURL

_RATING

public static final java.lang.Object _RATING

_VOTES

public static final java.lang.Object _VOTES

_PLACE

public static final java.lang.Object _PLACE

_ACTORS

public static final java.lang.Object _ACTORS

_COUNTRY

public static final java.lang.Object _COUNTRY

_RUNTIME

public static final java.lang.Object _RUNTIME
Constructor Detail

IMDBQuery

public IMDBQuery(java.lang.String searchString)
          throws java.lang.Exception
initializes the IMDB query

Parameters:
searchString - the string on which will be searched
Method Detail

getIDs

public java.lang.String[] getIDs(HttpConnection connection)
                          throws java.lang.Exception
Searches for the maching ID's from the search result(s)

java.lang.Exception

fillImdbData

public void fillImdbData(java.lang.String sID,
                         HttpConnection connection)
                  throws java.lang.Exception
Reads the information from www.imdb.com

Parameters:
sID - the movie ID from www.imdb.com
java.lang.Exception

getValue

public java.lang.String getValue(java.lang.Object identifier)

trim

public java.lang.String trim(java.lang.String sRaw)