blob: 559651b3b4f6cef07a4b75a41e24202afbe44b2e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.component;
/**
* A {@link BindingPattern} which is implicitly constructed by the model, e.g for built-in handlers and filter chains.
*
* @author bjorncs
*/
public class SystemBindingPattern extends BindingPattern {
private SystemBindingPattern(String scheme, String host, String port, String path) { super(scheme, host, port, path); }
private SystemBindingPattern(String binding) { super(binding); }
public static SystemBindingPattern fromHttpPath(String path) { return new SystemBindingPattern("http", "*", null, path);}
public static SystemBindingPattern fromPattern(String binding) { return new SystemBindingPattern(binding);}
@Override
public String toString() {
return "SystemBindingPattern{" +
"scheme='" + scheme() + '\'' +
", host='" + host() + '\'' +
", port='" + port().orElse(null) + '\'' +
", path='" + path() + '\'' +
'}';
}
}
|