public class NetworkOptions
extends java.lang.Object
Options for interaction with a data network.
Constructor and Description |
---|
NetworkOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowTunneling()
Return should HTTP verb tunneling be allowed in preference to OData batch requests?
Defaults to
false . |
boolean |
getCompressRequests()
Return should requests be compressed (if this is supported by the client and by the server)?
True by default.
|
boolean |
getCompressResponses()
Return should responses be compressed (if this is supported by the client and by the server)?
True by default.
|
HttpHandler |
getHttpHandler()
Return (nullable) A handler for all HTTP requests made by the data service.
|
boolean |
getStreamDownloads()
Return should downloads be streamed? Set this to
false to force the use of non-streamed downloads. |
boolean |
getStreamUploads()
Return should uploads be streamed? Set this to
false to force the use of non-streamed uploads. |
StringList |
getTunneledMethods()
Return which HTTP methods must be tunneled in HTTP POST due to proxy/firewall issues?
|
java.lang.String |
getTunnelingHeader()
Return which HTTP header can be used for tunneling, if it is required?
Defaults to "X-HTTP-Method".
|
void |
setAllowTunneling(boolean value)
Set should HTTP verb tunneling be allowed in preference to OData batch requests?
Defaults to
false . |
void |
setCompressRequests(boolean value)
Set should requests be compressed (if this is supported by the client and by the server)?
True by default.
|
void |
setCompressResponses(boolean value)
Set should responses be compressed (if this is supported by the client and by the server)?
True by default.
|
void |
setHttpHandler(HttpHandler value)
Set a handler for all HTTP requests made by the data service.
|
void |
setStreamDownloads(boolean value)
Set should downloads be streamed? Set this to
false to force the use of non-streamed downloads. |
void |
setStreamUploads(boolean value)
Set should uploads be streamed? Set this to
false to force the use of non-streamed uploads. |
void |
setTunneledMethods(StringList value)
Set which HTTP methods must be tunneled in HTTP POST due to proxy/firewall issues?
|
void |
setTunnelingHeader(java.lang.String value)
Set which HTTP header can be used for tunneling, if it is required?
Defaults to "X-HTTP-Method".
|
public boolean getAllowTunneling()
Return should HTTP verb tunneling be allowed in preference to OData batch requests?
Defaults to false
.
public boolean getCompressRequests()
Return should requests be compressed (if this is supported by the client and by the server)? True by default.
public boolean getCompressResponses()
Return should responses be compressed (if this is supported by the client and by the server)? True by default.
public HttpHandler getHttpHandler()
Return (nullable) A handler for all HTTP requests made by the data service.
public boolean getStreamDownloads()
Return should downloads be streamed? Set this to false
to force the use of non-streamed downloads.
True by default.
public boolean getStreamUploads()
Return should uploads be streamed? Set this to false
to force the use of non-streamed uploads.
True by default.
public StringList getTunneledMethods()
Return which HTTP methods must be tunneled in HTTP POST due to proxy/firewall issues?
public java.lang.String getTunnelingHeader()
Return which HTTP header can be used for tunneling, if it is required? Defaults to "X-HTTP-Method".
public void setAllowTunneling(boolean value)
Set should HTTP verb tunneling be allowed in preference to OData batch requests?
Defaults to false
.
value
- Should HTTP verb tunneling be allowed in preference to OData batch requests?public void setCompressRequests(boolean value)
Set should requests be compressed (if this is supported by the client and by the server)? True by default.
value
- Should requests be compressed (if this is supported by the client and by the server)?public void setCompressResponses(boolean value)
Set should responses be compressed (if this is supported by the client and by the server)? True by default.
value
- Should responses be compressed (if this is supported by the client and by the server)?public void setHttpHandler(HttpHandler value)
Set a handler for all HTTP requests made by the data service.
value
- A handler for all HTTP requests made by the data service.public void setStreamDownloads(boolean value)
Set should downloads be streamed? Set this to false
to force the use of non-streamed downloads.
True by default.
value
- Should downloads be streamed? Set this to `false` to force the use of non-streamed downloads.public void setStreamUploads(boolean value)
Set should uploads be streamed? Set this to false
to force the use of non-streamed uploads.
True by default.
value
- Should uploads be streamed? Set this to `false` to force the use of non-streamed uploads.public void setTunneledMethods(StringList value)
Set which HTTP methods must be tunneled in HTTP POST due to proxy/firewall issues?
value
- Which HTTP methods must be tunneled in HTTP POST due to proxy/firewall issues?public void setTunnelingHeader(java.lang.String value)
Set which HTTP header can be used for tunneling, if it is required? Defaults to "X-HTTP-Method".
value
- Which HTTP header can be used for tunneling, if it is required?