public class FtpResponse
extends java.lang.Object
| Constructor and Description |
|---|
FtpResponse(java.net.URL url,
WebPage page,
Ftp ftp,
Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns the response code.
|
byte[] |
getContent() |
java.lang.String |
getHeader(java.lang.String name)
Returns the value of a named header.
|
Content |
toContent() |
public FtpResponse(java.net.URL url,
WebPage page,
Ftp ftp,
Configuration conf)
throws FtpException,
java.io.IOException
FtpExceptionjava.io.IOExceptionpublic int getCode()
public java.lang.String getHeader(java.lang.String name)
public byte[] getContent()
public Content toContent()
Copyright © 2019 The Apache Software Foundation