001: /*
002: * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025: package com.sun.xml.internal.ws.server;
026:
027: import com.sun.xml.internal.ws.wsdl.parser.Service;
028: import java.io.InputStream;
029: import java.net.URL;
030:
031: public interface DocInfo {
032:
033: public enum DOC_TYPE {
034: WSDL, SCHEMA, OTHER
035: };
036:
037: /*
038: * The implemenation needs to work for multiple invocations of this method
039: */
040: public InputStream getDoc();
041:
042: /*
043: * @return wsdl=a, xsd=c etc
044: */
045: public String getQueryString();
046:
047: /*
048: * set wsdl=a, xsd=c etc as queryString
049: */
050: public void setQueryString(String queryString);
051:
052: /*
053: * Sets document type : WSDL, or Schema ?
054: */
055: public void setDocType(DOC_TYPE docType);
056:
057: /*
058: * return document type : WSDL, or Schema ?
059: */
060: public DOC_TYPE getDocType();
061:
062: /*
063: * Sets targetNamespace of WSDL, and schema
064: */
065: public void setTargetNamespace(String ns);
066:
067: /*
068: * Sets targetNamespace of WSDL, and schema
069: */
070: public String getTargetNamespace();
071:
072: /*
073: * Sets if the endpoint service is defined in this document
074: */
075: public void setService(Service service);
076:
077: /*
078: * returns true if endpoint service is present in this document
079: */
080: public Service getService();
081:
082: /*
083: * Sets if the endpoint Port Type is defined in this document
084: */
085: public void setHavingPortType(boolean portType);
086:
087: /*
088: * returns true if endpoint PortType is present in this document
089: */
090: public boolean isHavingPortType();
091:
092: /*
093: * @return /WEB-INF/wsdl/xxx.wsdl
094: */
095: public String getPath();
096:
097: /*
098: * @return URL for /WEB-INF/wsdl/xxx.wsdl
099: */
100: public URL getUrl();
101:
102: }
|