2 * Copyright 2009 jdumay.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 package org.apache.maven.archiva.proxy;
20 import org.apache.archiva.repository.api.ResourceContext;
22 public class MutableResourceContext implements ResourceContext
24 private final ResourceContext context;
26 private String logicalPath;
28 private String repositoryId;
30 public MutableResourceContext(ResourceContext context)
32 this.context = context;
35 public String getLogicalPath()
37 if (logicalPath != null)
41 return context.getLogicalPath();
44 public String getRepositoryId()
46 if (repositoryId != null)
53 public void setLogicalPath(String logicalPath)
55 this.logicalPath = logicalPath;
58 public void setRepositoryId(String repositoryId)
60 this.repositoryId = repositoryId;