swim.system.http.HttpLaneView Maven / Gradle / Ivy
The newest version!
// Copyright 2015-2024 Nstream, inc.
//
// 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 swim.system.http;
import swim.api.Lane;
import swim.api.Link;
import swim.api.SwimContext;
import swim.api.http.HttpLane;
import swim.api.http.HttpUplink;
import swim.api.http.function.DecodeRequestHttp;
import swim.api.http.function.DidRequestHttp;
import swim.api.http.function.DidRespondHttp;
import swim.api.http.function.DoRespondHttp;
import swim.api.http.function.WillRequestHttp;
import swim.api.http.function.WillRespondHttp;
import swim.codec.Decoder;
import swim.concurrent.Cont;
import swim.http.HttpRequest;
import swim.http.HttpResponse;
import swim.system.LaneView;
public abstract class HttpLaneView extends LaneView implements HttpLane {
public HttpLaneView(Object observers) {
super(observers);
}
@Override
public HttpLaneView observe(Object observer) {
super.observe(observer);
return this;
}
@Override
public HttpLaneView unobserve(Object observer) {
super.unobserve(observer);
return this;
}
@Override
public abstract HttpLaneView decodeRequest(DecodeRequestHttp decodeRequest);
@Override
public abstract HttpLaneView willRequest(WillRequestHttp> willRequest);
@Override
public abstract HttpLaneView didRequest(DidRequestHttp didRequest);
@Override
public abstract HttpLaneView doRespond(DoRespondHttp doRespond);
@Override
public abstract HttpLaneView willRespond(WillRespondHttp> willRespond);
@Override
public abstract HttpLaneView didRespond(DidRespondHttp> didRespond);
@SuppressWarnings("unchecked")
protected Decoder
© 2015 - 2025 Weber Informatics LLC | Privacy Policy