|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.gpt.framework.robots.BotsParser
public class BotsParser
Parser of "robots.txt" file.
Method Summary | |
---|---|
boolean |
canOverride()
Checks if robots.txt enabled flag can be overridden. |
static BotsParser |
getDefaultInstance()
Gets default instance. |
String |
getUserAgent()
Gets user agent. |
boolean |
isEnabled()
Checks if using robots.txt is enabled. |
Bots |
readRobotsTxt(BotsMode mode,
MatchingStrategy matchingStrategy,
WinningStrategy winningStrategy,
InputStream robotsTxt)
Parses robots TXT |
Bots |
readRobotsTxt(BotsMode mode,
MatchingStrategy matchingStrategy,
WinningStrategy winningStrategy,
String serverUrl)
Parses context of the Robots.txt file if available. |
Bots |
readRobotsTxt(BotsMode mode,
MatchingStrategy matchingStrategy,
WinningStrategy winningStrategy,
URL serverUrl)
Parses context of the Robots.txt file if available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BotsParser getDefaultInstance()
public String getUserAgent()
public boolean isEnabled()
true
if using robots.txt is enabledpublic boolean canOverride()
true
if robots.txt enabled flag can be overriddenpublic Bots readRobotsTxt(BotsMode mode, MatchingStrategy matchingStrategy, WinningStrategy winningStrategy, String serverUrl)
mode
- robots.txt modematchingStrategy
- matching strategywinningStrategy
- winning strategyserverUrl
- url of the server which is expected to have robots.txt
present
Bots
or null
if unable to
obtain robots.txtpublic Bots readRobotsTxt(BotsMode mode, MatchingStrategy matchingStrategy, WinningStrategy winningStrategy, URL serverUrl)
mode
- robots.txt modematchingStrategy
- matching strategywinningStrategy
- winning strategyserverUrl
- url of the server which is expected to have robots.txt
present
Bots
or null
if unable to
obtain robots.txtpublic Bots readRobotsTxt(BotsMode mode, MatchingStrategy matchingStrategy, WinningStrategy winningStrategy, InputStream robotsTxt)
mode
- robots.txt modematchingStrategy
- matching strategywinningStrategy
- winning strategyrobotsTxt
- stream of data
null
|
Esri Geoportal Server 1.2.9
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |