1 28 29 package com.caucho.server.dispatch; 30 31 import com.caucho.util.L10N; 32 33 import javax.servlet.Filter ; 34 import javax.servlet.FilterChain ; 35 36 39 public class FilterChainFilterBuilder extends FilterChainBuilder { 40 private static L10N L = new L10N(FilterChainFilterBuilder.class); 41 42 private Filter _filter; 43 44 47 public FilterChainFilterBuilder() 48 { 49 } 50 51 54 public FilterChainFilterBuilder(Filter filter) 55 { 56 _filter = filter; 57 } 58 59 62 public Filter getFilter() 63 { 64 return _filter; 65 } 66 67 70 public void setFilter(Filter filter) 71 { 72 _filter = filter; 73 } 74 75 81 public FilterChain build(FilterChain next, Invocation invocation) 82 { 83 return new FilterFilterChain(next, _filter); 84 } 85 } 86 | Popular Tags |