Package com.redhat.gss.jaxws

Source Code of com.redhat.gss.jaxws.HelloWS

/*
* To the extent possible under law, Red Hat, Inc. has dedicated all copyright
* to this software to the public domain worldwide, pursuant to the CC0 Public
* Domain Dedication. This software is distributed without any warranty.  See
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*/

package com.redhat.gss.jaxws;

import javax.xml.ws.spi.Provider;
import org.jboss.logging.Logger;

@javax.jws.WebService
//@org.jboss.wsf.spi.annotation.WebContext(transportGuarantee="CONFIDENTIAL")
//@org.apache.cxf.annotations.Logging(pretty=true)
//@org.apache.cxf.feature.Features(features={"org.apache.cxf.feature.LoggingFeature"})
public class HelloWS
{
  private Logger log = Logger.getLogger(this.getClass().getName());

  public String hello(String name) throws Exception
  {
    Provider provider = Provider.provider();
    log.info("WS Provider: " + provider.getClass().getName());
    return "Hello, " + name;
  }
}
TOP

Related Classes of com.redhat.gss.jaxws.HelloWS

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.