1 17 18 19 package org.apache.catalina.valves; 20 21 22 import java.io.IOException ; 23 import javax.servlet.ServletException ; 24 import org.apache.catalina.connector.Request; 25 import org.apache.catalina.connector.Response; 26 27 28 35 36 public final class RemoteHostValve 37 extends RequestFilterValve { 38 39 40 42 43 46 private static final String info = 47 "org.apache.catalina.valves.RemoteHostValve/1.0"; 48 49 50 52 53 56 public String getInfo() { 57 58 return (info); 59 60 } 61 62 63 65 66 78 public void invoke(Request request, Response response) 79 throws IOException , ServletException { 80 81 process(request.getRequest().getRemoteHost(), request, response); 82 83 } 84 85 86 } 87 | Popular Tags |