1 /* 2 * Copyright [2007] [University Corporation for Advanced Internet Development, Inc.] 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package edu.internet2.middleware.shibboleth.common.profile.provider; 18 19 import java.util.ArrayList; 20 import java.util.List; 21 22 import org.opensaml.ws.transport.InTransport; 23 import org.opensaml.ws.transport.OutTransport; 24 25 import edu.internet2.middleware.shibboleth.common.profile.ProfileHandler; 26 27 /** 28 * A request handler that is associated with a list of request URI, as defined by the HTTP servlet request. 29 * 30 * @param <InTransportType> inbound transport type 31 * @param <OutTransportType> outbount transport type 32 */ 33 public abstract class AbstractRequestURIMappedProfileHandler<InTransportType extends InTransport, OutTransportType extends OutTransport> 34 implements ProfileHandler<InTransportType, OutTransportType> { 35 36 /** Request paths that to which this profile handler will respond. */ 37 private List<String> requestPaths; 38 39 /** Constructor. */ 40 protected AbstractRequestURIMappedProfileHandler() { 41 requestPaths = new ArrayList<String>(); 42 } 43 44 /** 45 * Gets the request paths that to which this profile handler will respond. 46 * 47 * @return request paths that to which this profile handler will respond 48 */ 49 public List<String> getRequestPaths() { 50 return requestPaths; 51 } 52 53 /** 54 * Sets the request paths that to which this profile handler will respond. 55 * 56 * @param paths request paths that to which this profile handler will respond 57 */ 58 public void setRequestPaths(List<String> paths) { 59 requestPaths = paths; 60 } 61 }