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: package org.apache.pluto.descriptors.services;
18:
19: import org.apache.pluto.descriptors.servlet.WebAppDD;
20:
21: import java.io.IOException;
22: import java.io.InputStream;
23: import java.io.OutputStream;
24:
25: /**
26: * WebApplication configuration as contained
27: * within the web.xml Deployment Descriptor.
28: *
29: * @version $Id: WebAppDescriptorService.java 157038 2005-03-11 03:44:40Z ddewolf $
30: * @since Feb 28, 2005
31: */
32: public interface WebAppDescriptorService {
33:
34: /**
35: * Retrieve the WebApp deployment descriptor
36: * (web.xml).
37: * @return Object representation of the descriptor.
38: * @throws IOException if an IO error occurs.
39: */
40: WebAppDD read(InputStream in) throws IOException;
41:
42: /**
43: * Write the WebApp deployment descriptor
44: * (web.xml).
45: * @param dd
46: * @param out output stream to which the descriptor should be written
47: * @throws IOException if an IO error occurs.
48: */
49: void write(WebAppDD dd, OutputStream out) throws IOException;
50: }
|