blob: 8209d326c98554d9783071c926bc35f25a9e4f8a [file]
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
// This file automatically generated by:
// Apache Etch 1.1.0-incubating (LOCAL-0) / go 1.1.0-incubating (LOCAL-0)
// Thu Nov 18 15:39:28 CET 2010
// This file is automatically created and should not be edited!
package org_apache_etch_examples_helloworld
import "etch"
func SetStubHelpers_StubHelloWorldServer (dvf etch.ValueFactory) {
SetStubHelpers_StubHelloWorld()
if dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.say_hello").StubHelper == nil {
dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.say_hello").StubHelper = new(_mt_org_apache_etch_examples_helloworld_HelloWorld_say_helloHelper)
}
if dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.oneway").StubHelper == nil {
dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.oneway").StubHelper = new(_mt_org_apache_etch_examples_helloworld_HelloWorld_onewayHelper)
}
if dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.twoway").StubHelper == nil {
dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.twoway").StubHelper = new(_mt_org_apache_etch_examples_helloworld_HelloWorld_twowayHelper)
}
if dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.simpleArrayTest").StubHelper == nil {
dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.simpleArrayTest").StubHelper = new(_mt_org_apache_etch_examples_helloworld_HelloWorld_simpleArrayTestHelper)
}
if dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.structArrayTest").StubHelper == nil {
dvf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.structArrayTest").StubHelper = new(_mt_org_apache_etch_examples_helloworld_HelloWorld_structArrayTestHelper)
}
}
type _mt_org_apache_etch_examples_helloworld_HelloWorld_say_helloHelper struct{}
func (dh *_mt_org_apache_etch_examples_helloworld_HelloWorld_say_helloHelper) Run(svc etch.DeliveryService, impl interface{}, sender interface{}, msg *etch.Message) {
rmsg := msg.Reply()
di := impl.(*ImplHelloWorldServer)
to_whom := msg.Vf.(*ValueFactoryHelloWorld)._mf_to_whom ;
val_to_whom := msg.Fields[to_whom]
var to_whom_param *User = nil
if val_to_whom != nil {
to_whom_param = val_to_whom.(*User)
}
ret := di.say_hello(to_whom_param)
rmsg.Put(msg.Vf.GetDefaultResponseField(), ret)
svc.TransportMessage(sender, rmsg)
}
type _mt_org_apache_etch_examples_helloworld_HelloWorld_onewayHelper struct{}
func (dh *_mt_org_apache_etch_examples_helloworld_HelloWorld_onewayHelper) Run(svc etch.DeliveryService, impl interface{}, sender interface{}, msg *etch.Message) {
di := impl.(*ImplHelloWorldServer)
di.oneway()
}
type _mt_org_apache_etch_examples_helloworld_HelloWorld_twowayHelper struct{}
func (dh *_mt_org_apache_etch_examples_helloworld_HelloWorld_twowayHelper) Run(svc etch.DeliveryService, impl interface{}, sender interface{}, msg *etch.Message) {
rmsg := msg.Reply()
di := impl.(*ImplHelloWorldServer)
di.twoway()
svc.TransportMessage(sender, rmsg)
}
type _mt_org_apache_etch_examples_helloworld_HelloWorld_simpleArrayTestHelper struct{}
func (dh *_mt_org_apache_etch_examples_helloworld_HelloWorld_simpleArrayTestHelper) Run(svc etch.DeliveryService, impl interface{}, sender interface{}, msg *etch.Message) {
rmsg := msg.Reply()
di := impl.(*ImplHelloWorldServer)
ints := msg.Vf.(*ValueFactoryHelloWorld)._mf_ints ;
val_ints := msg.Fields[ints]
var ints_param []int32 = val_ints.([]int32)
di.simpleArrayTest(ints_param)
svc.TransportMessage(sender, rmsg)
}
type _mt_org_apache_etch_examples_helloworld_HelloWorld_structArrayTestHelper struct{}
func (dh *_mt_org_apache_etch_examples_helloworld_HelloWorld_structArrayTestHelper) Run(svc etch.DeliveryService, impl interface{}, sender interface{}, msg *etch.Message) {
rmsg := msg.Reply()
di := impl.(*ImplHelloWorldServer)
users := msg.Vf.(*ValueFactoryHelloWorld)._mf_users ;
val_users := msg.Fields[users]
var users_param []*User = val_users.([]*User)
di.structArrayTest(users_param)
svc.TransportMessage(sender, rmsg)
}