⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myhelloservice_impl.jad

📁 < J2EE应用开发详解>>一书全部的源代码. 本书基于J2EE 1.4平台
💻 JAD
字号:
// Decompiled by DJ v2.5.5.45 Copyright 2000 Atanas Neshkov  Date: 2003-11-8 21:07:09
// Home Page : http//members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   MyHelloService_Impl.java

package com.j2eewebservice;

import com.sun.xml.rpc.client.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
import java.rmi.Remote;
import javax.xml.namespace.QName;
import javax.xml.rpc.JAXRPCException;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.handler.HandlerRegistry;

// Referenced classes of package com.j2eewebservice:
//            MyHelloService_SerializerRegistry, HelloIF_Stub, MyHelloService, HelloIF

public class MyHelloService_Impl extends BasicService
    implements MyHelloService
{

    public MyHelloService_Impl()
    {
        super(serviceName, new QName[] {
            ns1_HelloIFPort_QNAME
        }, (new MyHelloService_SerializerRegistry()).getRegistry());
    }

    public Remote getPort(QName qname, Class class1)
        throws ServiceException
    {
        Exception exception;
        if(qname.equals(ns1_HelloIFPort_QNAME) && class1.equals(helloIF_PortClass))
            return getHelloIFPort();
        else
            return super.getPort(qname, class1);
        exception;
        throw new ServiceExceptionImpl(new LocalizableExceptionAdapter(exception));
    }

    public Remote getPort(Class class1)
        throws ServiceException
    {
        Exception exception;
        if(class1.equals(helloIF_PortClass))
            return getHelloIFPort();
        else
            return super.getPort(class1);
        exception;
        throw new ServiceExceptionImpl(new LocalizableExceptionAdapter(exception));
    }

    public HelloIF getHelloIFPort()
    {
        String as[] = new String[0];
        HandlerChainImpl handlerchainimpl = new HandlerChainImpl(getHandlerRegistry().getHandlerChain(ns1_HelloIFPort_QNAME));
        handlerchainimpl.setRoles(as);
        HelloIF_Stub helloif_stub = new HelloIF_Stub(handlerchainimpl);
        try
        {
            helloif_stub._initialize(internalTypeRegistry);
        }
        catch(JAXRPCException jaxrpcexception)
        {
            throw jaxrpcexception;
        }
        catch(Exception exception)
        {
            throw new JAXRPCException(exception.getMessage(), exception);
        }
        return helloif_stub;
    }

    static Class class$(String s)
    {
        return Class.forName(s);
        ClassNotFoundException classnotfoundexception;
        classnotfoundexception;
        throw new NoClassDefFoundError(classnotfoundexception.getMessage());
    }

    private static final QName serviceName = new QName("urn:Demo", "MyHelloService");
    private static final QName ns1_HelloIFPort_QNAME = new QName("urn:Demo", "HelloIFPort");
    private static final Class helloIF_PortClass;
    static Class class$com$j2eewebservice$HelloIF; /* synthetic field */

    static 
    {
        helloIF_PortClass = class$com$j2eewebservice$HelloIF != null ? class$com$j2eewebservice$HelloIF : (class$com$j2eewebservice$HelloIF = class$("com.j2eewebservice.HelloIF"));
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -