/*******************************************************************************
 * Copyright (c) 2002, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.jst.ws.internal.consumption.ui.wizard.uddi;

import org.eclipse.wst.ws.internal.plugin.WSPlugin;

public class PublicUDDIRegistryIBM implements PublicUDDIRegistryType
{

    // Copyright
    public static final String copyright = "(c) Copyright IBM Corporation 2002.";

    public PublicUDDIRegistryIBM() {
    }

    public String getName() {
        return WSPlugin.getResourceString("%PUBLICUDDIREGISTRYTYPE_NAME_IBM");
    }

    public String getInquiryURL() {
        return "http://uddi.ibm.com/ubr/inquiryapi";
    }

    public String getPublishURL() {
        return "https://uddi.ibm.com/ubr/publishapi";
    }

    public String getRegistrationURL() {
        return "http://uddi.ibm.com/ubr/registry.html";
    }

}
