Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

package in.shop2020.hotspot.dashbaord.server.handler;

import in.shop2020.hotspot.dashbaord.shared.actions.AddressRequest;
import in.shop2020.hotspot.dashbaord.shared.actions.AddressResponse;
import in.shop2020.hotspot.dashbaord.shared.data.Address;
import net.customware.gwt.dispatch.server.ActionHandler;
import net.customware.gwt.dispatch.server.ExecutionContext;
import net.customware.gwt.dispatch.shared.ActionException;

public class AddressHandler implements ActionHandler<AddressRequest, AddressResponse>{

        @Override
        public AddressResponse execute(AddressRequest arg0, ExecutionContext arg1)
                        throws ActionException {
                // TODO Auto-generated method stub
                Address a = new Address("Ashish", "D-15/15, GF,", "Ardee City", "Sector-52", "Gold Souk", "Gurgaon", "Haryana", "India", "122003", "9811384697");
                return new AddressResponse(a);
        }

        @Override
        public Class<AddressRequest> getActionType() {
                // TODO Auto-generated method stub
                return AddressRequest.class;
        }

        @Override
        public void rollback(AddressRequest arg0, AddressResponse arg1,
                        ExecutionContext arg2) throws ActionException {
                // TODO Auto-generated method stub
                
        }

}