001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */package org.apache.cxf.ws.rm;
019:
020: import java.util.Collection;
021: import java.util.List;
022: import java.util.Map;
023: import java.util.Set;
024: import java.util.concurrent.Executor;
025:
026: import org.apache.cxf.binding.Binding;
027: import org.apache.cxf.endpoint.Endpoint;
028: import org.apache.cxf.feature.AbstractFeature;
029: import org.apache.cxf.interceptor.Interceptor;
030: import org.apache.cxf.service.Service;
031: import org.apache.cxf.service.model.EndpointInfo;
032: import org.apache.cxf.transport.MessageObserver;
033:
034: public class WrappedEndpoint implements Endpoint {
035:
036: private Endpoint wrappedEndpoint;
037: private EndpointInfo endpointInfo;
038: private Service service;
039:
040: WrappedEndpoint(Endpoint wrapped, EndpointInfo info, Service s) {
041: wrappedEndpoint = wrapped;
042: endpointInfo = info;
043: service = s;
044: }
045:
046: public Endpoint getWrappedEndpoint() {
047: return wrappedEndpoint;
048: }
049:
050: public EndpointInfo getEndpointInfo() {
051: return endpointInfo;
052: }
053:
054: public Service getService() {
055: return service;
056: }
057:
058: public Binding getBinding() {
059: return wrappedEndpoint.getBinding();
060: }
061:
062: public Executor getExecutor() {
063: return wrappedEndpoint.getExecutor();
064: }
065:
066: public MessageObserver getInFaultObserver() {
067: return wrappedEndpoint.getInFaultObserver();
068: }
069:
070: public MessageObserver getOutFaultObserver() {
071: return wrappedEndpoint.getOutFaultObserver();
072: }
073:
074: public void setExecutor(Executor arg0) {
075: wrappedEndpoint.setExecutor(arg0);
076: }
077:
078: public void setInFaultObserver(MessageObserver arg0) {
079: wrappedEndpoint.setInFaultObserver(arg0);
080: }
081:
082: public void setOutFaultObserver(MessageObserver arg0) {
083: wrappedEndpoint.setOutFaultObserver(arg0);
084: }
085:
086: public List<Interceptor> getInFaultInterceptors() {
087: return wrappedEndpoint.getInFaultInterceptors();
088: }
089:
090: public List<Interceptor> getInInterceptors() {
091: return wrappedEndpoint.getInInterceptors();
092: }
093:
094: public List<Interceptor> getOutFaultInterceptors() {
095: return wrappedEndpoint.getOutFaultInterceptors();
096: }
097:
098: public List<Interceptor> getOutInterceptors() {
099: return wrappedEndpoint.getOutInterceptors();
100: }
101:
102: public void clear() {
103: wrappedEndpoint.clear();
104: }
105:
106: public boolean containsKey(Object key) {
107: return wrappedEndpoint.containsKey(key);
108: }
109:
110: public boolean containsValue(Object value) {
111: return wrappedEndpoint.containsValue(value);
112: }
113:
114: public Set<Entry<String, Object>> entrySet() {
115: return wrappedEndpoint.entrySet();
116: }
117:
118: public Object get(Object key) {
119: return wrappedEndpoint.get(key);
120: }
121:
122: public boolean isEmpty() {
123: return wrappedEndpoint.isEmpty();
124: }
125:
126: public Set<String> keySet() {
127: return wrappedEndpoint.keySet();
128: }
129:
130: public Object put(String key, Object value) {
131: return wrappedEndpoint.put(key, value);
132: }
133:
134: public void putAll(Map<? extends String, ? extends Object> t) {
135: wrappedEndpoint.putAll(t);
136: }
137:
138: public Object remove(Object key) {
139: return wrappedEndpoint.remove(key);
140: }
141:
142: public int size() {
143: return wrappedEndpoint.size();
144: }
145:
146: public Collection<Object> values() {
147: return wrappedEndpoint.values();
148: }
149:
150: /**
151: * @return the list of fearures <b>already</b> activated for this endpoint.
152: */
153: public List<AbstractFeature> getActiveFeatures() {
154: return wrappedEndpoint.getActiveFeatures();
155: }
156: }
|