Modifier and Type | Field and Description |
---|---|
protected ArrayList |
allows |
protected ArrayList |
disallows |
protected ArrayList |
userAgents |
Constructor and Description |
---|
Robots.Record()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAgent(String agentName)
Add a user-agent.
|
void |
addAllow(String allowPath)
Add an allow.
|
void |
addDisallow(String disallowPath)
Add a disallow.
|
boolean |
isAgentMatch(String agentNameUpper,
boolean exactMatch)
See if user-agent matches.
|
boolean |
isAllowed(String path)
See if path is allowed.
|
boolean |
isDisallowed(String path)
See if path is disallowed.
|
protected ArrayList userAgents
protected ArrayList disallows
protected ArrayList allows
public void addAgent(String agentName)
public void addDisallow(String disallowPath)
public void addAllow(String allowPath)
public boolean isAgentMatch(String agentNameUpper, boolean exactMatch)
public boolean isDisallowed(String path)
public boolean isAllowed(String path)