public interface Protocol
| Modifier and Type | Interface and Description |
|---|---|
static class |
Protocol.MultiPartDesc
Represents multipart/form-data in a request.
|
static class |
Protocol.PostRsvp
Represents the result of a form data post.
|
static class |
Protocol.SectionDataOption
Describes an entry in a multipart MIME section in a multipart/form-data media type.
|
static class |
Protocol.SimplePostData
Represents simple POST data.
|
static class |
Protocol.TrustType
An enumeration of trust enforcement rules.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
get(String sUrl)
Gets (downloads) the data designated by the given URL.
|
AuthenticationHandler |
getAuthenticationHandler()
Gets the 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> data,
String sUrl)
Posts multipart form data to the given URL.
|
Protocol.PostRsvp |
post(Protocol.SimplePostData data,
String sUrl)
Posts simple form data to the given URL.
|
void |
put(InputStream inputStream,
String sUrl)
Puts (uploads) the given input stream's data to the given URL.
|
void |
put(String sFileName,
String sUrl)
Puts (uploads) the given file's data to the given URL.
|
String |
scheme()
Gets the protocol's scheme.
|
String scheme()
InputStream get(String sUrl)
sUrl - the URL to be downloaded.void put(String sFileName, String sUrl)
sFileName - the file to be uploaded.sUrl - the URL to upload the file to.void put(InputStream inputStream, String sUrl)
inputStream - the input stream to be uploaded.sUrl - the URL to upload the input stream to.Protocol.PostRsvp post(Protocol.SimplePostData data, String sUrl)
data - a description of the simple form data being posted to the URL.sUrl - the URL to post the data to.Protocol.PostRsvp post(List<? extends Protocol.MultiPartDesc> data, String sUrl)
data - a description of the multipart form data being posted to the URL.sUrl - the URL to post the data to.AuthenticationHandler getAuthenticationHandler()
null.boolean isTrusted(String sURL, Protocol.TrustType eTrustType, boolean bThrow)
sURL - the URL to be trusted.eTrustType - the type of trust enforcement needed.bThrow - when true, requests that a trust exception (ExFull)
be thrown if the URL is not trusted.true if trusted, otherwise false.URLStreamHandler getURLStreamHandler()
Copyright © 2010 - 2020 Adobe. All Rights Reserved