Protocol.MultiPartDesc, Protocol.PostRsvp, Protocol.SectionDataOption, Protocol.SimplePostData, Protocol.TrustType
Constructor and Description |
---|
SysProtocol()
The default c'tor -- instantiate a Protocol object.
|
SysProtocol(AuthenticationHandler authenticationHandler,
URLStreamHandler urlStreamHandler) |
Modifier and Type | Method and Description |
---|---|
InputStream |
get(String sUrl)
Method to get (download) a file designated by the given URL.
|
AuthenticationHandler |
getAuthenticationHandler()
Gets this protocol's authentication handler.
|
URLStreamHandler |
getURLStreamHandler()
Gets the protocol's URL stream handler.
|
boolean |
isTrusted(String sURL,
Protocol.TrustType eTrustType,
boolean bThrow)
Determines if the given URL can be trusted according to the given type of enforcement rule.
|
Protocol.PostRsvp |
post(List<? extends Protocol.MultiPartDesc> oData,
String sUrl)
Virtual method to post form data to a designated URL.
|
Protocol.PostRsvp |
post(Protocol.SimplePostData oData,
String sUrl)
Method to post form data to a designated URL.
|
void |
put(InputStream iFile,
String sUrl)
Method to put (upload) memory to a designated URL.
|
void |
put(String sFileName,
String sUrl)
Method to put (upload) the given file to a file designated
by the given URL.
|
String |
scheme()
Gets the protocol's scheme.
|
public SysProtocol()
public SysProtocol(AuthenticationHandler authenticationHandler, URLStreamHandler urlStreamHandler)
public InputStream get(String sUrl)
public void put(String sFileName, String sUrl)
public void put(InputStream iFile, String sUrl)
public Protocol.PostRsvp post(Protocol.SimplePostData oData, String sUrl)
public Protocol.PostRsvp post(List<? extends Protocol.MultiPartDesc> oData, String sUrl)
public AuthenticationHandler getAuthenticationHandler()
getAuthenticationHandler
in interface Protocol
null
.public URLStreamHandler getURLStreamHandler()
Protocol
getURLStreamHandler
in interface Protocol
public boolean isTrusted(String sURL, Protocol.TrustType eTrustType, boolean bThrow)
Protocol
Copyright © 2010 - 2020 Adobe. All Rights Reserved