| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private String | |
| private String | |
| private Pattern | |
| private boolean | |
| private boolean | |
| private static final Log | |
| private final Map | |
| private int | |
| private Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public Map | |
| public String | |
| public String | |
| public int | |
| protected void | initInternal()
Overrides org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method. |
| public void | invoke(Request
The servlet request to be processed request, Response The servlet response to be created response)Implements org. Perform request processing as required by this Valve. |
| public boolean | |
| public boolean | |
| public void | |
| public void | setCrawlerIps(String
The regular expression using crawlerIps)PatternSpecify the regular expression (using |
| public void | setCrawlerUserAgents(String
The regular expression using crawlerUserAgents)PatternSpecify the regular expression (using |
| public void | |
| public void | setSessionInactiveInterval(int
The new timeout for crawler sessions sessionInactiveInterval)Specify the session timeout (in seconds) for a crawler's session. |
| clientIdSessionId | back to summary |
|---|---|
| private final Map<String, String> clientIdSessionId | |
| crawlerIps | back to summary |
|---|---|
| private String crawlerIps | |
| crawlerUserAgents | back to summary |
|---|---|
| private String crawlerUserAgents | |
| ipPattern | back to summary |
|---|---|
| private Pattern ipPattern | |
| isContextAware | back to summary |
|---|---|
| private boolean isContextAware | |
| isHostAware | back to summary |
|---|---|
| private boolean isHostAware | |
| log | back to summary |
|---|---|
| private static final Log log | |
| sessionIdClientId | back to summary |
|---|---|
| private final Map<String, String> sessionIdClientId | |
| sessionInactiveInterval | back to summary |
|---|---|
| private int sessionInactiveInterval | |
| uaPattern | back to summary |
|---|---|
| private Pattern uaPattern | |
| CrawlerSessionManagerValve | back to summary |
|---|---|
| public CrawlerSessionManagerValve() Specifies a default constructor so async support can be configured. | |
| getClientIdentifier | back to summary |
|---|---|
| private String getClientIdentifier(Host host, Context context, String clientIp) | |
| getClientIpSessionId | back to summary |
|---|---|
| public Map | |
| getCrawlerIps | back to summary |
|---|---|
public String getCrawlerIps()
| |
| getCrawlerUserAgents | back to summary |
|---|---|
public String getCrawlerUserAgents()
| |
| getSessionInactiveInterval | back to summary |
|---|---|
public int getSessionInactiveInterval()
| |
| initInternal | back to summary |
|---|---|
| protected void initInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional initialization should override this method, ensuring that super.initInternal() is the first call in the overriding method.
| |
| invoke | back to summary |
|---|---|
| public void invoke(Request request, Response response) throws IOException, ServletException Implements org. Doc from org. Perform request processing as required by this Valve. An individual Valve MAY perform the following actions, in the specified order:
A Valve MUST NOT do any of the following things:
| |
| isContextAware | back to summary |
|---|---|
| public boolean isContextAware() | |
| isHostAware | back to summary |
|---|---|
| public boolean isHostAware() | |
| setContextAware | back to summary |
|---|---|
| public void setContextAware(boolean isContextAware) | |
| setCrawlerIps | back to summary |
|---|---|
| public void setCrawlerIps(String crawlerIps) Specify the regular expression (using | |
| setCrawlerUserAgents | back to summary |
|---|---|
| public void setCrawlerUserAgents(String crawlerUserAgents) Specify the regular expression (using | |
| setHostAware | back to summary |
|---|---|
| public void setHostAware(boolean isHostAware) | |
| setSessionInactiveInterval | back to summary |
|---|---|
| public void setSessionInactiveInterval(int sessionInactiveInterval) Specify the session timeout (in seconds) for a crawler's session. This is typically lower than that for a user session. The default is 60 seconds.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final transient String | |
| private final transient Map | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | valueUnbound(HttpSessionBindingEvent
the event that identifies the session event)Overrides default jakarta. Notifies the object that it is being unbound from a session and identifies the session. |
| clientIdentifier | back to summary |
|---|---|
| private final transient String clientIdentifier | |
| clientIdSessionId | back to summary |
|---|---|
| private final transient Map<String, String> clientIdSessionId | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| CrawlerHttpSessionBindingListener | back to summary |
|---|---|
| private CrawlerHttpSessionBindingListener(Map<String, String> clientIdSessionId, String clientIdentifier) | |
| valueUnbound | back to summary |
|---|---|
| public void valueUnbound(HttpSessionBindingEvent event) Overrides default jakarta. Doc from jakarta. Notifies the object that it is being unbound from a session and identifies the session. The default implementation is a NO-OP.
| |