Package: FileDeployUriNormaliser

FileDeployUriNormaliser

nameinstructionbranchcomplexitylinemethod
FileDeployUriNormaliser()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
normalise(URI)
M: 9 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.kernel.deployer.core.internal.uri;
13:
14: import java.net.URI;
15:
16: import org.eclipse.virgo.nano.deployer.api.core.DeployUriNormaliser;
17:
18:
19: /**
20: * A {@link DeployUriNormaliser} implementation that normalises file: {@link URI URIs}.
21: *
22: * <p />
23: *
24: * <strong>Concurrent Semantics</strong><br />
25: *
26: * Thread-safe.
27: *
28: */
29: class FileDeployUriNormaliser implements DeployUriNormaliser {
30:
31: private static final String SCHEME_FILE = "file";
32:
33: /**
34: * {@inheritDoc}
35: */
36: public URI normalise(URI uri) {
37:• if (SCHEME_FILE.equals(uri.getScheme())) {
38: return uri;
39: }
40: return null;
41: }
42: }