Class HttpModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.common.ectrans.module.HttpModule
- All Implemented Interfaces:
Closeable, AutoCloseable
The Class HttpModule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close.voidconnect(String location, ECtransSetup setup) Connect.voidDel.Gets the.intgetPort(ECtransSetup setup) Gets the port.Gets the status.voidlist(String directory, String pattern, OutputStream out) List.String[]listAsStringArray(String directory, String pattern) List as string array.booleanput(InputStream input, String name, long posn, long size) Put.Put.static StringresolveHref(String currentUrl, String href) Resolves an href relative to the current URL or path.longSize.voidUpdate socket statistics.Methods inherited from class TransferModule
check, containsAttribute, copy, delegateChecksum, get, getAttribute, getAttribute, getAvailable, getClearPassword, getClosedOnError, getCookie, getDebug, getECtransDestination, getECtransModule, getECUser, getMSUser, getRemoteProvider, listAsByteArray, mkdir, move, preGet, prePut, rmdir, setAttribute, setAttribute, setAvailable, setClosedOnError, setDebug, setInputFilter, setInputMd5, setInputSize, setOutputFilter
-
Constructor Details
-
HttpModule
public HttpModule()
-
-
Method Details
-
getStatus
Gets the status.- Overrides:
getStatusin classTransferModule- Returns:
- the status
-
getPort
Gets the port.- Overrides:
getPortin classTransferModule- Parameters:
setup- the setup- Returns:
- the port
-
updateSocketStatistics
Update socket statistics.- Overrides:
updateSocketStatisticsin classTransferModule- Throws:
IOException- Signals that an I/O exception has occurred.
-
connect
Connect.- Specified by:
connectin classTransferModule- Parameters:
location- the locationsetup- the setup- Throws:
IOException- Signals that an I/O exception has occurred.
-
del
Del.- Specified by:
delin classTransferModule- Parameters:
name- the name- Throws:
IOException- Signals that an I/O exception has occurred.
-
put
Put.- Specified by:
putin classTransferModule- Parameters:
name- the nameposn- the posnsize- the size- Returns:
- the output stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
put
Put.- Overrides:
putin classTransferModule- Parameters:
input- the inputname- the nameposn- the posnsize- the size- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
get
Gets the.- Specified by:
getin classTransferModule- Parameters:
name- the nameposn- the posn- Returns:
- the input stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
size
Size.- Specified by:
sizein classTransferModule- Parameters:
name- the name- Returns:
- the long
- Throws:
IOException- Signals that an I/O exception has occurred.
-
list
List.- Overrides:
listin classTransferModule- Parameters:
directory- the directorypattern- the patternout- the out- Throws:
IOException- Signals that an I/O exception has occurred.
-
listAsStringArray
List as string array.- Overrides:
listAsStringArrayin classTransferModule- Parameters:
directory- the directorypattern- the pattern- Returns:
- the string[]
- Throws:
IOException- Signals that an I/O exception has occurred.
-
resolveHref
Resolves an href relative to the current URL or path.- Parameters:
currentUrl- the current URL or path (can be root-relative or full URL)href- the href to resolve (can be relative or absolute)- Returns:
- the resolved path or URL
- Throws:
URISyntaxException- if the URL is invalid
-
close
Close.- Throws:
IOException- Signals that an I/O exception has occurred.
-