< prev index next >

jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/util/HandlerAnnotationProcessor.java

Print this page


   1 /*
   2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  28 import com.sun.xml.internal.ws.api.WSBinding;
  29 import com.sun.xml.internal.ws.api.databinding.MetadataReader;
  30 import com.sun.xml.internal.ws.api.server.AsyncProvider;
  31 import com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory;
  32 import com.sun.xml.internal.ws.handler.HandlerChainsModel;
  33 import com.sun.xml.internal.ws.model.ReflectAnnotationReader;
  34 import com.sun.xml.internal.ws.server.EndpointFactory;
  35 import com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil;
  36 import com.sun.istack.internal.NotNull;
  37 
  38 import javax.jws.HandlerChain;
  39 import javax.jws.WebService;
  40 import javax.jws.soap.SOAPMessageHandlers;
  41 import javax.xml.namespace.QName;
  42 import javax.xml.stream.XMLStreamException;
  43 import javax.xml.stream.XMLStreamReader;
  44 import javax.xml.ws.Provider;
  45 import javax.xml.ws.Service;
  46 import java.io.IOException;
  47 import java.io.InputStream;

  48 import java.net.URL;
  49 import java.util.logging.Logger;
  50 
  51 /**
  52  * <p>Used by client and server side to create handler information
  53  * from annotated class. The public methods all return a
  54  * HandlerChainInfo that contains the handlers and role information
  55  * needed at runtime.
  56  *
  57  * <p>All of the handler chain descriptors follow the same schema,
  58  * whether they are wsdl customizations, handler files specified
  59  * by an annotation, or are included in the sun-jaxws.xml file.
  60  * So this class is used for all handler xml information. The
  61  * two public entry points are
  62  * {@link HandlerAnnotationProcessor#buildHandlerInfo}, called
  63  * when you have an annotated class that points to a file.
  64  *
  65  * <p>The methods in the class are static so that it may called
  66  * from the runtime statically.
  67  *


   1 /*
   2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  28 import com.sun.xml.internal.ws.api.WSBinding;
  29 import com.sun.xml.internal.ws.api.databinding.MetadataReader;
  30 import com.sun.xml.internal.ws.api.server.AsyncProvider;
  31 import com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory;
  32 import com.sun.xml.internal.ws.handler.HandlerChainsModel;
  33 import com.sun.xml.internal.ws.model.ReflectAnnotationReader;
  34 import com.sun.xml.internal.ws.server.EndpointFactory;
  35 import com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil;
  36 import com.sun.istack.internal.NotNull;
  37 
  38 import javax.jws.HandlerChain;
  39 import javax.jws.WebService;
  40 import javax.jws.soap.SOAPMessageHandlers;
  41 import javax.xml.namespace.QName;
  42 import javax.xml.stream.XMLStreamException;
  43 import javax.xml.stream.XMLStreamReader;
  44 import javax.xml.ws.Provider;
  45 import javax.xml.ws.Service;
  46 import java.io.IOException;
  47 import java.io.InputStream;
  48 import java.lang.reflect.Method;
  49 import java.net.URL;
  50 import java.util.logging.Logger;
  51 
  52 /**
  53  * <p>Used by client and server side to create handler information
  54  * from annotated class. The public methods all return a
  55  * HandlerChainInfo that contains the handlers and role information
  56  * needed at runtime.
  57  *
  58  * <p>All of the handler chain descriptors follow the same schema,
  59  * whether they are wsdl customizations, handler files specified
  60  * by an annotation, or are included in the sun-jaxws.xml file.
  61  * So this class is used for all handler xml information. The
  62  * two public entry points are
  63  * {@link HandlerAnnotationProcessor#buildHandlerInfo}, called
  64  * when you have an annotated class that points to a file.
  65  *
  66  * <p>The methods in the class are static so that it may called
  67  * from the runtime statically.
  68  *


< prev index next >