Search in sources :

Example 11 with HelloController

use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.

the class HelloController method greet.

@EzyDoHandle("Hello4")
public void greet(@EzyRequestData GreetRequest request, EzyUser user, EzySession session, boolean nothing) {
    GreetResponse response = new GreetResponse("Hello " + request.getWho() + "!");
    System.out.println("HelloController::Big/Hello response: " + response);
}
Also used : GreetResponse(com.tvd12.ezyfoxserver.support.test.data.GreetResponse) EzyDoHandle(com.tvd12.ezyfox.core.annotation.EzyDoHandle)

Example 12 with HelloController

use of com.tvd12.ezyfoxserver.support.test.controller.HelloController in project ezyfox-server by youngmonkeys.

the class HelloController method greet.

@EzyDoHandle("Hello3")
public void greet(@EzyRequestData GreetRequest request, EzyUser user, EzySession session, int nothing) {
    GreetResponse response = new GreetResponse("Hello " + request.getWho() + "!");
    System.out.println("HelloController::Big/Hello response: " + response);
}
Also used : GreetResponse(com.tvd12.ezyfoxserver.support.test.data.GreetResponse) EzyDoHandle(com.tvd12.ezyfox.core.annotation.EzyDoHandle)

Aggregations

GreetResponse (com.tvd12.ezyfoxserver.support.test.data.GreetResponse)8 EzyDoHandle (com.tvd12.ezyfox.core.annotation.EzyDoHandle)7 HelloController (com.tvd12.ezyfoxserver.support.test.controller.HelloController)5 Test (org.testng.annotations.Test)5 EzyRequestHandlersImplementer (com.tvd12.ezyfoxserver.support.asm.EzyRequestHandlersImplementer)3 EzyFeatureCommandManager (com.tvd12.ezyfoxserver.support.manager.EzyFeatureCommandManager)3 EzyRequestCommandManager (com.tvd12.ezyfoxserver.support.manager.EzyRequestCommandManager)3 EzyRequestControllerProxy (com.tvd12.ezyfoxserver.support.reflect.EzyRequestControllerProxy)2 EzyAppContext (com.tvd12.ezyfoxserver.context.EzyAppContext)1 EzySession (com.tvd12.ezyfoxserver.entity.EzySession)1 EzySimpleUser (com.tvd12.ezyfoxserver.entity.EzySimpleUser)1 EzyUser (com.tvd12.ezyfoxserver.entity.EzyUser)1 EzySimpleUserSessionEvent (com.tvd12.ezyfoxserver.event.EzySimpleUserSessionEvent)1 EzyUserSessionEvent (com.tvd12.ezyfoxserver.event.EzyUserSessionEvent)1 EzyRequestHandlerImplementer (com.tvd12.ezyfoxserver.support.asm.EzyRequestHandlerImplementer)1 EzyObjectResponse (com.tvd12.ezyfoxserver.support.command.EzyObjectResponse)1 EzyResponseFactory (com.tvd12.ezyfoxserver.support.factory.EzyResponseFactory)1 EzyUserRequestHandler (com.tvd12.ezyfoxserver.support.handler.EzyUserRequestHandler)1 GreetRequest (com.tvd12.ezyfoxserver.support.test.data.GreetRequest)1