|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.wrmf.transport.httptransport.HTTPPipeAdapter
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
protected static boolean |
RECONN_SUPPORTED
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) static SSLSocketFactory |
socketFact
|
protected static boolean |
VERBOSE
|
private static String |
versionID
|
Constructor Summary | |
HTTPPipeAdapter()
|
Method Summary | |
private static long |
findDownloadedBytes(HTTPRequest request)
|
private static Enumeration |
findPullMethod(HTTPRequest request)
|
void |
initialize()
Supported API: false |
protected static String |
modifyUrlIfNecessary(String url,
MethodInvocationDesc pipeDesc,
boolean gzip,
boolean reconn)
Modify the "url" if necessary. |
protected static void |
performPullInGeneral(HTTPRequest request,
HTTPResponse response,
boolean useGZIP,
boolean useResumption)
|
protected static void |
performPushInGeneral(HTTPRequest request,
HTTPResponse response,
boolean fromISZipped,
boolean gzipResultStream,
boolean useResumption)
|
protected static void |
performPushInGeneral(HTTPRequest request,
HTTPResponse response,
InputStream is,
boolean fromISZipped,
boolean gzipResultStream,
boolean useResumption)
|
protected static String |
preparePipeConnection(String fullUrl,
String wrappedMethod,
SiteAddress to)
This method will be called at the "client/local" side. |
protected static boolean |
preparePipeExecution(HTTPRequest request)
This method will be called at the remote/serverl" side. |
protected static InputStream |
pullInGeneral(String pullMethod,
String fullUrl,
SiteAddress to,
String pipeMethod,
boolean useGZIP,
boolean useResumption)
|
protected static InputStream |
pushInGeneral(InputStream is,
long length,
SiteAddress to,
String pipeMethod,
boolean gzip,
boolean reconn,
boolean byWrmf)
Note: "gzip" means to gzip con.getInputStream() or not (see code below) and "reconn" means to handle interruption (reconenct, resumption) automatically if set to true |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(HTTPPipeAdapter thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected static boolean |
setRemotePrincipal(HTTPRequest request)
If the remote site is a Product Replication Peer, the corresponding WTPrincipal will be set; otherwise it will not. |
protected static void |
setSSLSocketFactoryOnDemand(URLConnection con)
This method was changed in 7.0_M010 to accomodate JDKs created by other vendors than sun. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wt.wrmf.transport.Pipe |
pull, push |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String versionID
protected static boolean VERBOSE
protected static boolean RECONN_SUPPORTED
static SSLSocketFactory socketFact
Constructor Detail |
public HTTPPipeAdapter()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(HTTPPipeAdapter thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
protected static boolean setRemotePrincipal(HTTPRequest request)
request
-
protected static boolean preparePipeExecution(HTTPRequest request)
request
-
protected static String preparePipeConnection(String fullUrl, String wrappedMethod, SiteAddress to) throws WTTransportException
fullUrl
- wrappedMethod
- to
-
WTTransportException
protected static String modifyUrlIfNecessary(String url, MethodInvocationDesc pipeDesc, boolean gzip, boolean reconn)
url
- pipeDesc
- gzip
- reconn
-
private static Enumeration findPullMethod(HTTPRequest request)
private static long findDownloadedBytes(HTTPRequest request)
public void initialize()
Pipe
initialize
in interface Pipe
protected static InputStream pushInGeneral(InputStream is, long length, SiteAddress to, String pipeMethod, boolean gzip, boolean reconn, boolean byWrmf) throws IOException, WTTransportException
IOException
WTTransportException
protected static void performPushInGeneral(HTTPRequest request, HTTPResponse response, InputStream is, boolean fromISZipped, boolean gzipResultStream, boolean useResumption) throws IOException
IOException
protected static void performPushInGeneral(HTTPRequest request, HTTPResponse response, boolean fromISZipped, boolean gzipResultStream, boolean useResumption) throws IOException
IOException
protected static InputStream pullInGeneral(String pullMethod, String fullUrl, SiteAddress to, String pipeMethod, boolean useGZIP, boolean useResumption) throws IOException, WTTransportException
IOException
WTTransportException
protected static void performPullInGeneral(HTTPRequest request, HTTPResponse response, boolean useGZIP, boolean useResumption) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IOException
IllegalAccessException
protected static void setSSLSocketFactoryOnDemand(URLConnection con) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |