public class HTTPRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HTTPRequest.ContentPart<T>
This class holds the content part data.
|
static class |
HTTPRequest.ContentPartType
This enum defines the content part types which are supported.
|
static class |
HTTPRequest.ContentType
This enum defines the content types which are supported.
|
Constructor and Description |
---|
HTTPRequest()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContentAsBinary()
This function returns the content.
|
HTTPRequest.ContentPart<?>[] |
getContentAsParts()
This function returns the content.
|
String |
getContentAsString()
This function returns the content.
|
HTTPRequest.ContentType |
getContentType()
This function returns the content type of this request.
|
Properties |
getHeaderProperties()
This function returns the header properties.
|
String |
getParametersText()
This function returns the URL parameters text.
|
String |
getResource()
This function returns the requested resource.
|
void |
setContent(byte[] content)
This function sets the content.
|
void |
setContent(HTTPRequest.ContentPart<?>[] content)
This function sets the content.
|
void |
setContent(String content)
This function sets the content.
|
void |
setHeaderProperties(Properties headerProperties)
This function sets the header properties.
|
void |
setParametersText(String parametersText)
This function sets the URL parameters text.
|
void |
setResource(String resource)
This function sets the requested resource.
|
public final String getResource()
public final String getParametersText()
public final Properties getHeaderProperties()
public final void setResource(String resource)
resource
- The new value for the requested resourcepublic final void setParametersText(String parametersText)
parametersText
- The new value for the URL parameters textpublic final void setHeaderProperties(Properties headerProperties)
headerProperties
- The new value for the header propertiespublic final HTTPRequest.ContentType getContentType()
public final byte[] getContentAsBinary()
public final void setContent(byte[] content)
content
- The new value for the contentpublic final String getContentAsString()
public final void setContent(String content)
content
- The new value for the contentpublic final HTTPRequest.ContentPart<?>[] getContentAsParts()
public final void setContent(HTTPRequest.ContentPart<?>[] content)
content
- The new value for the contentCopyright © 2009–2020 fax4j. All rights reserved.