Skip to content

Commit ad2dcbb

Browse files
author
echo
committed
Recreate DeafaultMcpUriTemplateManagerFactory for compatibility
1 parent bca06c6 commit ad2dcbb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2025 - 2025 the original author or authors.
3+
*/
4+
package io.modelcontextprotocol.util;
5+
6+
/**
7+
* @deprecated Use {@link DefaultMcpUriTemplateManagerFactory} instead. This
8+
* class will be removed in future versions.
9+
* @author Christian Tzolov
10+
*/
11+
@Deprecated
12+
public class DeafaultMcpUriTemplateManagerFactory implements McpUriTemplateManagerFactory {
13+
14+
/**
15+
* Creates a new instance of {@link McpUriTemplateManager} with the specified URI
16+
* template.
17+
*
18+
* @param uriTemplate The URI template to be used for variable extraction
19+
* @return A new instance of {@link McpUriTemplateManager}
20+
* @throws IllegalArgumentException if the URI template is null or empty
21+
*/
22+
@Override
23+
public McpUriTemplateManager create(String uriTemplate) {
24+
return new DefaultMcpUriTemplateManager(uriTemplate);
25+
}
26+
}

0 commit comments

Comments
 (0)