|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.polliwog.fields.AbstractField org.polliwog.fields.AbstractURIField org.polliwog.fields.RefererHeaderField
public class RefererHeaderField
A field that represents a website "referer". A referer is basically a fully-qualified URL. In certain circumstances a referer is a "-", this is generally used by search engines.
Last Modified By: $Author: barrygently $ Last Modified On: $Date: 2005/07/04 14:00:02 $ Current Revision: $Revision: 1.3 $
Field Summary | |
---|---|
static int |
FIELD_ID
This is a unique constant for this field, it MUST NOT clash with any other field constant value otherwise incorrect casting may result. |
Fields inherited from class org.polliwog.fields.AbstractURIField |
---|
uri |
Constructor Summary | |
---|---|
RefererHeaderField()
|
Method Summary | |
---|---|
void |
clear()
Clear the data that the field holds. |
int |
getFieldId()
Should return a unique id for this field, this is to help with classes (such as: Hit )
that use this id to help in identification. |
java.lang.String |
getPath()
Get the "path" of the URL, in general this is either the value (if it's not a valid URL) or the path of the URL returned from URI.getPath. |
java.lang.String |
getPathExtension()
Get the "file extension" of the URL. |
java.net.URI |
getURI()
Get the URI. |
void |
init(java.util.Map params,
java.lang.String value)
Init the field with the referer value. |
Methods inherited from class org.polliwog.fields.AbstractURIField |
---|
getParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FIELD_ID
Constructor Detail |
---|
public RefererHeaderField()
Method Detail |
---|
public void clear()
AbstractField
clear
in class AbstractField
public java.lang.String getPath()
getPath
in class AbstractURIField
public java.net.URI getURI()
getURI
in class AbstractURIField
null
if the URL is invalid.public java.lang.String getPathExtension()
getPathExtension
in class AbstractURIField
public void init(java.util.Map params, java.lang.String value)
init
in class AbstractField
params
- Init parms, not used here.value
- The referer value.public int getFieldId()
AbstractField
Hit
)
that use this id to help in identification.
getFieldId
in class AbstractField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |