|
||||||||||
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.FilesystemPath
com.caucho.vfs.HttpPath
com.caucho.vfs.HttpsPath
public class HttpsPath
The HTTP scheme. Currently it supports GET and POST.
TODO: support WEBDAV, enabling the full Path API.
Field Summary | |
---|---|
protected static L10N |
L
|
Fields inherited from class com.caucho.vfs.HttpPath |
---|
_cache, _cacheEntry, _host, _port, _query, _virtualHost |
Fields inherited from class com.caucho.vfs.FilesystemPath |
---|
_bindRoot, _pathname, _root, _userPath |
Fields inherited from class com.caucho.vfs.Path |
---|
_pathSeparatorChar, _schemeMap, _separatorChar |
Constructor Summary | |
---|---|
HttpsPath(FilesystemPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String path,
java.lang.String query)
Creates a new HTTP sub path. |
|
HttpsPath(java.lang.String host,
int port)
Creates a new HTTP root path with a host and a port. |
Method Summary | |
---|---|
protected HttpPath |
create(FilesystemPath root,
java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> newAttributes,
java.lang.String path,
java.lang.String query)
|
protected HttpPath |
create(java.lang.String host,
int port)
|
boolean |
equals(java.lang.Object o)
Overrides equals to test for equality with an HTTP path. |
java.lang.String |
getScheme()
Returns the scheme, http. |
int |
hashCode()
Returns a hashCode for the path. |
StreamImpl |
openReadImpl()
Returns a read stream for a GET request. |
StreamImpl |
openReadWriteImpl()
Returns a read/write pair for a POST request. |
Methods inherited from class com.caucho.vfs.HttpPath |
---|
cacheCopy, canRead, exists, fsWalk, getCache, getHost, getLastModified, getLength, getPort, getQuery, getURL, getUserPath, getVirtualHost, isDirectory, isFile, lookupImpl, schemeWalk, toString |
Methods inherited from class com.caucho.vfs.FilesystemPath |
---|
bind, createRoot, getFullPath, getParent, getPath, getRoot, getTail, init, normalizePath, normalizePath, setUserPath |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static L10N L
Constructor Detail |
---|
public HttpsPath(java.lang.String host, int port)
host
- the target hostport
- the target port, if zero, uses port 80.public HttpsPath(FilesystemPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String path, java.lang.String query)
root
- the HTTP filesystem rootuserPath
- the argument to the calling lookup()newAttributes
- any attributes passed to httppath
- the full normalized pathquery
- any query stringMethod Detail |
---|
protected HttpPath create(java.lang.String host, int port)
create
in class HttpPath
protected HttpPath create(FilesystemPath root, java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> newAttributes, java.lang.String path, java.lang.String query)
create
in class HttpPath
public java.lang.String getScheme()
getScheme
in class HttpPath
public StreamImpl openReadImpl() throws java.io.IOException
openReadImpl
in class HttpPath
java.io.IOException
public StreamImpl openReadWriteImpl() throws java.io.IOException
openReadWriteImpl
in class HttpPath
java.io.IOException
public int hashCode()
hashCode
in class HttpPath
public boolean equals(java.lang.Object o)
equals
in class HttpPath
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |