public class AgentFileProtocolResolver
extends java.lang.Object
implements org.springframework.core.io.ProtocolResolver
| Constructor and Description |
|---|
AgentFileProtocolResolver(AgentFileStreamService agentFileStreamService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.net.URI |
createUri(java.lang.String jobId,
java.lang.String path,
java.lang.String rangeHeader)
Create a URI for the given remote agent file.
|
org.springframework.core.io.Resource |
resolve(java.lang.String location,
org.springframework.core.io.ResourceLoader resourceLoader) |
public AgentFileProtocolResolver(AgentFileStreamService agentFileStreamService)
agentFileStreamService - the agent file stream servicepublic static java.net.URI createUri(java.lang.String jobId,
java.lang.String path,
@Nullable
java.lang.String rangeHeader)
throws java.net.URISyntaxException
jobId - the job idpath - the path of the file within the job directoryrangeHeader - the request range header (as per RFC 7233)URI representing the remote agent filejava.net.URISyntaxException - if constructing the URI failspublic org.springframework.core.io.Resource resolve(java.lang.String location,
org.springframework.core.io.ResourceLoader resourceLoader)
resolve in interface org.springframework.core.io.ProtocolResolver