public static class

PDFViewCtrl.HTTPRequestOptions

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.PDFViewCtrl.HTTPRequestOptions

Class Overview

Class for customizing network requests.

Summary

Public Constructors
HTTPRequestOptions()
Create a HTTPRequestOptions object.
Public Methods
void addHeader(String header, String val)
Sets a custom header to use with all requests.
void restrictDownloadUsage(boolean val)
Restrict download usage
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HTTPRequestOptions ()

Create a HTTPRequestOptions object.

Public Methods

public void addHeader (String header, String val)

Sets a custom header to use with all requests.

Parameters
header A custom header.
val The value of the custom header.
Throws
PDFNetException PDFNet exception

public void restrictDownloadUsage (boolean val)

Restrict download usage

Parameters
val whether to restrict download usage
Throws
PDFNetException PDFNet exception