All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.hasor.rsf.domain.warp.AbstractRsfResponseWarp Maven / Gradle / Ivy

There is a newer version: 4.2.5
Show newest version
/*
 * Copyright 2008-2009 the original author or authors.
 *
 * Licensed 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.
 */
package net.hasor.rsf.domain.warp;
import net.hasor.rsf.RsfBindInfo;
import net.hasor.rsf.RsfResponse;

/**
 * 调用请求
 * @version : 2014年10月25日
 * @author 赵永春 ([email protected])
 */
public abstract class AbstractRsfResponseWarp implements RsfResponse {
    protected abstract RsfResponse getRsfResponse();

    @Override
    public RsfBindInfo getBindInfo() {
        return this.getRsfResponse().getBindInfo();
    }

    @Override
    public long getRequestID() {
        return this.getRsfResponse().getRequestID();
    }

    @Override
    public String getSerializeType() {
        return this.getRsfResponse().getSerializeType();
    }

    @Override
    public String[] getOptionKeys() {
        return this.getRsfResponse().getOptionKeys();
    }

    @Override
    public String getOption(String key) {
        return this.getRsfResponse().getOption(key);
    }

    @Override
    public void addOption(String key, String value) {
        this.getRsfResponse().addOption(key, value);
    }

    @Override
    public void removeOption(String key) {
        this.getRsfResponse().removeOption(key);
    }

    @Override
    public Object getData() {
        return this.getRsfResponse().getData();
    }

    @Override
    public Class getReturnType() {
        return this.getRsfResponse().getReturnType();
    }

    @Override
    public short getStatus() {
        return this.getRsfResponse().getStatus();
    }

    @Override
    public void sendData(Object returnObject) {
        this.getRsfResponse().sendData(returnObject);
    }

    @Override
    public void sendStatus(short status) {
        this.getRsfResponse().sendStatus(status);
    }

    @Override
    public void sendStatus(short status, String messageBody) {
        this.getRsfResponse().sendStatus(status, messageBody);
    }

    @Override
    public boolean isResponse() {
        return this.getRsfResponse().isResponse();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy