|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.Path
com.caucho.vfs.TcpPath
public class TcpPath
Implements a tcp stream, essentially just a socket pair.
Field Summary | |
---|---|
static java.lang.String |
CONNECT_TIMEOUT
|
Fields inherited from class com.caucho.vfs.Path |
---|
_pathSeparatorChar, _schemeMap, _separatorChar, L |
Constructor Summary | |
---|---|
TcpPath(TcpPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String host,
int port)
|
Method Summary | |
---|---|
protected Path |
cacheCopy()
Copy for caching. |
protected TcpPath |
create(TcpPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String host,
int port)
|
java.lang.String |
getHost()
Returns the hostname |
java.lang.String |
getPath()
Returns the path. |
int |
getPort()
Returns the port. |
java.lang.String |
getScheme()
Returns the url scheme |
java.net.SocketAddress |
getSocketAddress()
|
java.lang.String |
getURL()
Returns the full url for the given path. |
StreamImpl |
openReadImpl()
|
StreamImpl |
openReadWriteImpl()
|
Path |
schemeWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String uri,
int offset)
Lookup the new path assuming we're the scheme root. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONNECT_TIMEOUT
Constructor Detail |
---|
public TcpPath(TcpPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String host, int port)
Method Detail |
---|
public Path schemeWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String uri, int offset)
schemeWalk
in class Path
userPath
- the user's lookup() path.newAttributes
- the attributes for the new path.uri
- the lookup() pathoffset
- offset into newPath to start lookup.
protected TcpPath create(TcpPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String host, int port)
public java.lang.String getScheme()
Path
getScheme
in class Path
public java.lang.String getURL()
Path
getURL
in class Path
public java.lang.String getPath()
Path
getPath
in class Path
public java.lang.String getHost()
Path
getHost
in class Path
public int getPort()
Path
getPort
in class Path
public java.net.SocketAddress getSocketAddress()
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class Path
java.io.IOException
public StreamImpl openReadWriteImpl() throws java.io.IOException
openReadWriteImpl
in class Path
java.io.IOException
protected Path cacheCopy()
Path
cacheCopy
in class Path
public java.lang.String toString()
toString
in class Path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |