Add unit tests for RemoteAddrValve and RemoteHostValve.

Backport of r1642554 from trunk resp. r1643511 from tc8.


git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1643514 13f79535-47bb-0310-9956-ffa450edef68
Add optional use of connector port in allow
and deny expressions for RemoteAddrValve
and RemoteHostValve.

Allow RemoteAddreValve and RemoteHostValve to
trigger authentication instead of denying a
request with a status code.

Backports of r1642564, r1642595 and r1642606 from trunk
resp. r1643513 from tc8
(using request.SetContext() - deprecated in TC 8 -
instead of assigning to request.getMappingData().context
in TestRequestFilterValve).


git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1643515 13f79535-47bb-0310-9956-ffa450edef68
Correct a typo. Make section names and anchors unambiguous.

Backport of r1643055 form trunk resp. r1643521 from tc8.


git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1643523 13f79535-47bb-0310-9956-ffa450edef68