public static class NioEndpoint.SendfileData extends Object
Modifier and Type | Field and Description |
---|---|
protected NioChannel |
channel |
protected long |
end |
protected FileChannel |
fileChannel |
protected String |
fileName |
protected boolean |
keepAlive |
protected long |
pos |
protected long |
start |
Constructor and Description |
---|
NioEndpoint.SendfileData() |
Modifier and Type | Method and Description |
---|---|
NioChannel |
getChannel()
Getter for channel
|
long |
getEnd()
Getter for end
|
String |
getFileName()
Getter for fileName
|
long |
getPos()
Getter for pos
|
long |
getStart()
Getter for start
|
boolean |
isKeepAlive()
Getter for keepAlive
|
void |
setChannel(NioChannel channel)
Setter for the channel
|
void |
setEnd(long end)
Setter for the end
|
void |
setFileName(String fileName)
Setter for the fileName
|
void |
setKeepAlive(boolean keepAlive)
Setter for the keepAlive
|
void |
setPos(long pos)
Setter for the pos
|
void |
setStart(long start)
Setter for the start
|
protected void |
setup()
Prepare the
SendfileData |
protected String fileName
protected long start
protected long end
protected NioChannel channel
protected FileChannel fileChannel
protected long pos
protected boolean keepAlive
protected void setup() throws IOException
SendfileData
IOException
Exception
public String getFileName()
public void setFileName(String fileName)
fileName
- the fileName to setpublic long getStart()
public void setStart(long start)
start
- the start to setpublic long getEnd()
public void setEnd(long end)
end
- the end to setpublic NioChannel getChannel()
public void setChannel(NioChannel channel)
channel
- the channel to setpublic long getPos()
public void setPos(long pos)
pos
- the pos to setpublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive
- the keepAlive to setCopyright © 2014 JBoss by Red Hat. All Rights Reserved.