public class URLReturnData extends Object
Constructor and Description |
---|
URLReturnData() |
URLReturnData(byte[] pData) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Return the response contents.
|
Map<String,List<String>> |
getHeaderFields()
Returns an unmodifiable Map of the header fields.
|
void |
setData(byte[] bytes)
Set the response contents.
|
void |
setHeaderFields(Map<String,List<String>> headerFields)
Set the header fields map.
|
public URLReturnData()
public URLReturnData(byte[] pData)
pData
- response contents as a byte[]public void setData(byte[] bytes)
bytes
- response contentspublic void setHeaderFields(Map<String,List<String>> headerFields)
headerFields
- list of header fieldspublic byte[] getData()
public Map<String,List<String>> getHeaderFields()
URLConnection.getHeaderFields()
Copyright © 2020 Snowbound Software Corporation. All rights reserved.