You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RemoteRepositoryContentMock.java 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. package org.apache.archiva.repository.mock;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. import org.apache.archiva.model.ArtifactReference;
  21. import org.apache.archiva.model.RepositoryURL;
  22. import org.apache.archiva.repository.LayoutException;
  23. import org.apache.archiva.repository.RemoteRepository;
  24. import org.apache.archiva.repository.RemoteRepositoryContent;
  25. import org.springframework.stereotype.Service;
  26. /**
  27. * @author Martin Stockhammer <martin_s@apache.org>
  28. */
  29. @Service("remoteRepositoryContent#mock")
  30. public class RemoteRepositoryContentMock implements RemoteRepositoryContent
  31. {
  32. RemoteRepository repository;
  33. @Override
  34. public String getId( )
  35. {
  36. return null;
  37. }
  38. @Override
  39. public RemoteRepository getRepository( )
  40. {
  41. return null;
  42. }
  43. @Override
  44. public RepositoryURL getURL( )
  45. {
  46. return null;
  47. }
  48. @Override
  49. public void setRepository( RemoteRepository repo )
  50. {
  51. this.repository = repo;
  52. }
  53. @Override
  54. public ArtifactReference toArtifactReference( String path ) throws LayoutException
  55. {
  56. return null;
  57. }
  58. @Override
  59. public String toPath( ArtifactReference reference )
  60. {
  61. return null;
  62. }
  63. @Override
  64. public RepositoryURL toURL( ArtifactReference reference )
  65. {
  66. return null;
  67. }
  68. }