01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.tomcat.util.http.mapper;
19:
20: import org.apache.tomcat.util.buf.MessageBytes;
21:
22: /**
23: * Mapping data.
24: *
25: * @author Remy Maucherat
26: */
27: public class MappingData {
28:
29: public Object host = null;
30: public Object context = null;
31: public Object wrapper = null;
32: public boolean jspWildCard = false;
33:
34: public MessageBytes contextPath = MessageBytes.newInstance();
35: public MessageBytes requestPath = MessageBytes.newInstance();
36: public MessageBytes wrapperPath = MessageBytes.newInstance();
37: public MessageBytes pathInfo = MessageBytes.newInstance();
38:
39: public MessageBytes redirectPath = MessageBytes.newInstance();
40:
41: public void recycle() {
42: host = null;
43: context = null;
44: wrapper = null;
45: pathInfo.recycle();
46: requestPath.recycle();
47: wrapperPath.recycle();
48: contextPath.recycle();
49: redirectPath.recycle();
50: jspWildCard = false;
51: }
52:
53: }
|