本文整理匯總了Java中com.codenotfound.types.helloworld.Person類的典型用法代碼示例。如果您正苦於以下問題:Java Person類的具體用法?Java Person怎麽用?Java Person使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Person類屬於com.codenotfound.types.helloworld包,在下文中一共展示了Person類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: sayHello
import com.codenotfound.types.helloworld.Person; //導入依賴的package包/類
public String sayHello(String firstName, String lastName) {
ObjectFactory factory = new ObjectFactory();
Person person = factory.createPerson();
person.setFirstName(firstName);
person.setLastName(lastName);
LOGGER.info("Client sending person=[firstName:{},lastName:{}]",
person.getFirstName(), person.getLastName());
Greeting greeting = (Greeting) helloWorldClientProxyBean
.sayHello(person);
LOGGER.info("Client received greeting=[{}]",
greeting.getGreeting());
return greeting.getGreeting();
}
示例2: sayHello
import com.codenotfound.types.helloworld.Person; //導入依賴的package包/類
@Override
public Greeting sayHello(Person request) {
LOGGER.info(
"Endpoint received person=[firstName:{},lastName:{}]",
request.getFirstName(), request.getLastName());
String greeting = "Hello " + request.getFirstName() + " "
+ request.getLastName() + "!";
ObjectFactory factory = new ObjectFactory();
Greeting response = factory.createGreeting();
response.setGreeting(greeting);
LOGGER.info("Endpoint sending greeting=[{}]",
response.getGreeting());
return response;
}
示例3: sayHello
import com.codenotfound.types.helloworld.Person; //導入依賴的package包/類
public String sayHello(String firstName, String lastName) {
ObjectFactory factory = new ObjectFactory();
Person person = factory.createPerson();
person.setFirstName(firstName);
person.setLastName(lastName);
Greeting response = helloWorldProxy.sayHello(person);
return response.getGreeting();
}
示例4: sayHello
import com.codenotfound.types.helloworld.Person; //導入依賴的package包/類
@Override
public Greeting sayHello(Person request) {
String greeting = "Hello " + request.getFirstName() + " "
+ request.getLastName() + "!";
ObjectFactory factory = new ObjectFactory();
Greeting response = factory.createGreeting();
response.setGreeting(greeting);
return response;
}
示例5: sayHello
import com.codenotfound.types.helloworld.Person; //導入依賴的package包/類
public String sayHello(String firstName, String lastName) {
ObjectFactory factory = new ObjectFactory();
Person person = factory.createPerson();
person.setFirstName(firstName);
person.setLastName(lastName);
LOGGER.info("Client sending person[firstName={},lastName={}]", person.getFirstName(),
person.getLastName());
Greeting greeting = (Greeting) webServiceTemplate.marshalSendAndReceive(person);
LOGGER.info("Client received greeting='{}'", greeting.getGreeting());
return greeting.getGreeting();
}
示例6: sayHello
import com.codenotfound.types.helloworld.Person; //導入依賴的package包/類
@PayloadRoot(namespace = "http://codenotfound.com/types/helloworld", localPart = "person")
@ResponsePayload
public Greeting sayHello(@RequestPayload Person request) {
LOGGER.info("Endpoint received person[firstName={},lastName={}]", request.getFirstName(),
request.getLastName());
String greeting = "Hello " + request.getFirstName() + " " + request.getLastName() + "!";
ObjectFactory factory = new ObjectFactory();
Greeting response = factory.createGreeting();
response.setGreeting(greeting);
LOGGER.info("Endpoint sending greeting='{}'", response.getGreeting());
return response;
}