org.archive.crawler.io
Class UriProcessingFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.archive.crawler.io.UriProcessingFormatter
All Implemented Interfaces:
CoreAttributeConstants
Direct Known Subclasses:
LocalErrorFormatter, RuntimeErrorFormatter

public class UriProcessingFormatter
extends java.util.logging.Formatter
implements CoreAttributeConstants

Formatter for 'crawl.log'. Expects completed CrawlURI as parameter.

Author:
gojomo

Field Summary
 
Fields inherited from interface org.archive.crawler.datamodel.CoreAttributeConstants
A_ANNOTATIONS, A_CONTENT_DIGEST, A_CONTENT_TYPE, A_CREDENTIAL_AVATARS_KEY, A_DELAY_FACTOR, A_DISTANCE_FROM_SEED, A_DNS_FETCH_TIME, A_DNS_SERVER_IP_LABEL, A_ETAG_HEADER, A_FETCH_BEGAN_TIME, A_FETCH_COMPLETED_TIME, A_FETCH_HISTORY, A_FORCE_RETIRE, A_FTP_CONTROL_CONVERSATION, A_FTP_FETCH_STATUS, A_HERITABLE_KEYS, A_HTML_BASE, A_HTTP_BIND_ADDRESS, A_HTTP_PROXY_HOST, A_HTTP_PROXY_PORT, A_HTTP_TRANSACTION, A_LAST_MODIFIED_HEADER, A_LOCALIZED_ERRORS, A_META_ROBOTS, A_MINIMUM_DELAY, A_MIRROR_PATH, A_PREREQUISITE_URI, A_REFERENCE_LENGTH, A_RETRY_DELAY, A_RRECORD_SET_LABEL, A_RUNTIME_EXCEPTION, A_SOURCE_TAG, A_STATUS, A_WRITTEN_TO_WARC, HEADER_TRUNC, LENGTH_TRUNC, TIMER_TRUNC, TRUNC_SUFFIX
 
Constructor Summary
UriProcessingFormatter()
           
 
Method Summary
protected  java.lang.String checkForNull(java.lang.String str)
           
 java.lang.String format(java.util.logging.LogRecord lr)
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriProcessingFormatter

public UriProcessingFormatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord lr)
Specified by:
format in class java.util.logging.Formatter

checkForNull

protected java.lang.String checkForNull(java.lang.String str)
Parameters:
str - String to check.
Returns:
Return passed string or NA if null.


Copyright © 2003-2011 Internet Archive. All Rights Reserved.