Package org.apache.maven.internal.impl
Class DefaultTransport
java.lang.Object
org.apache.maven.internal.impl.DefaultTransport
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Transport
-
Constructor Summary
ConstructorDescriptionDefaultTransport
(URI baseURI, org.eclipse.aether.spi.connector.transport.Transporter transporter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
GETs the source URI content into target (does not have to exist, or will be overwritten if exist).Optional<byte[]>
GETs the source URI content as byte array.GETs the source URI content as string.void
PUTs the source file (must exist as file) to target URI.void
PUTs the source byte array to target URI.void
PUTs the source string to target URI.
-
Constructor Details
-
DefaultTransport
public DefaultTransport(URI baseURI, org.eclipse.aether.spi.connector.transport.Transporter transporter)
-
-
Method Details
-
get
Description copied from interface:Transport
GETs the source URI content into target (does not have to exist, or will be overwritten if exist). The source MUST BE relative from theRemoteRepository.getUrl()
root. -
getBytes
Description copied from interface:Transport
GETs the source URI content as byte array. The source MUST BE relative from theRemoteRepository.getUrl()
root. -
getString
Description copied from interface:Transport
GETs the source URI content as string. The source MUST BE relative from theRemoteRepository.getUrl()
root. -
put
Description copied from interface:Transport
PUTs the source file (must exist as file) to target URI. The target MUST BE relative from theRemoteRepository.getUrl()
root. -
putBytes
Description copied from interface:Transport
PUTs the source byte array to target URI. The target MUST BE relative from theRemoteRepository.getUrl()
root. -
putString
Description copied from interface:Transport
PUTs the source string to target URI. The target MUST BE relative from theRemoteRepository.getUrl()
root. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-