de.janrufmonitor.repository.web
Class RegExpURLRequester
java.lang.Object
de.janrufmonitor.repository.web.AbstractURLRequester
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 readingpn - phonenumber in raw format, e.g. 072657110ns - 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)
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.