de.janrufmonitor.repository.web
Class RegExpURLRequester

java.lang.Object
  extended by de.janrufmonitor.repository.web.AbstractURLRequester
      extended by de.janrufmonitor.repository.web.RegExpURLRequester

public class RegExpURLRequester
extends AbstractURLRequester

This class implements the HTTP call to the web caller manager with certain regular expression for address data, name and phonenumber.

Author:
Thilo Brandt

Field Summary
static String REGEXP_ADDITIONAL
           
static String REGEXP_AREACODE
           
static String REGEXP_CITY
           
static String REGEXP_FIRSTNAME
           
static String REGEXP_LASTNAME
           
static String REGEXP_PHONE
           
static String REGEXP_POSTALCODE
           
static String REGEXP_STREET
           
static String REGEXP_STREETNO
           
 
Fields inherited from class de.janrufmonitor.repository.web.AbstractURLRequester
m, m_logger, m_skip, pn, url
 
Constructor Summary
RegExpURLRequester(String url, long skip, String pn, String ns, Properties config, IRuntime r, Locale l, String intarea)
           
RegExpURLRequester(String url, long skip, String pn, String ns, Properties config, IRuntime r, Locale l, String intarea, String ua)
          Creates a new instance of a RegExp URL Requester.
 
Method Summary
 void go()
          Requests the HTTP server and parses the result.
 
Methods inherited from class de.janrufmonitor.repository.web.AbstractURLRequester
getAttributes, getPhonenumber, getTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGEXP_LASTNAME

public static String REGEXP_LASTNAME

REGEXP_FIRSTNAME

public static String REGEXP_FIRSTNAME

REGEXP_ADDITIONAL

public static String REGEXP_ADDITIONAL

REGEXP_STREET

public static String REGEXP_STREET

REGEXP_STREETNO

public static String REGEXP_STREETNO

REGEXP_POSTALCODE

public static String REGEXP_POSTALCODE

REGEXP_CITY

public static String REGEXP_CITY

REGEXP_AREACODE

public static String REGEXP_AREACODE

REGEXP_PHONE

public static String REGEXP_PHONE
Constructor Detail

RegExpURLRequester

public RegExpURLRequester(String url,
                          long skip,
                          String pn,
                          String ns,
                          Properties config,
                          IRuntime r,
                          Locale l,
                          String intarea,
                          String ua)
Creates a new instance of a RegExp URL Requester.

Parameters:
url - URL to be called (containing phone string). Must not be null.
skip - Bytes to drop from reading
pn - phonenumber in raw format, e.g. 072657110
ns - namespace of the calling web caller manager. Must not be null.
config - configuration from the calling web caller manager. Must not be null.
r - the current runtime instance. Must not be null.

RegExpURLRequester

public RegExpURLRequester(String url,
                          long skip,
                          String pn,
                          String ns,
                          Properties config,
                          IRuntime r,
                          Locale l,
                          String intarea)
Method Detail

go

public void go()
        throws Exception
Description copied from class: AbstractURLRequester
Requests the HTTP server and parses the result. The result is stored in an IAttributeMap and in an IPhonenumber object.

Specified by:
go in class AbstractURLRequester
Throws:
Exception


Copyright © 2010 by Thilo Brandt. All Rights Reserved.