public class MultiPartHTTPRequestParser extends AbstractRequestParser<HTTPRequest> implements HTTPRequestParser
Name | Description | Preconfigured Value | Default Value | Mandatory |
org.fax4j.bridge.http.request.parser.multi.part.file.content.parameter | The file content parameter name. | file | file | false |
org.fax4j.bridge.http.request.parser.multi.part.file.name.parameter | The file name parameter name. | filename | filename | false |
org.fax4j.bridge.http.request.parser.multi.part.priority.parameter | The priority parameter name. | priority | priority | false |
org.fax4j.bridge.http.request.parser.multi.part.target.address.parameter | The target address parameter name. | targetaddress | targetaddress | false |
org.fax4j.bridge.http.request.parser.multi.part.target.name.parameter | The target name parameter name. | targetname | targetname | false |
org.fax4j.bridge.http.request.parser.multi.part.sender.name.parameter | The sender name parameter name. | sendername | sendername | false |
org.fax4j.bridge.http.request.parser.multi.part.sender.fax.number.parameter | The sender fax number parameter name. | senderfaxnumber | senderfaxnumber | false |
org.fax4j.bridge.http.request.parser.multi.part.sender.email.parameter | The sender email parameter name. | senderemail | senderemail | false |
Modifier and Type | Class and Description |
---|---|
static class |
MultiPartHTTPRequestParser.HTTPRequestParserConfigurationConstants
This class holds the configuration constants.
|
Modifier and Type | Field and Description |
---|---|
protected String |
fileContentParameter
The file content parameter name
|
protected String |
fileNameParameter
The file name parameter name
|
protected String |
priorityParameter
The priority parameter name
|
protected String |
senderEMailParameter
The sender email parameter name
|
protected String |
senderFaxNumberParameter
The sender fax number parameter name
|
protected String |
senderNameParameter
The sender name parameter name
|
protected String |
targetAddressParameter
The target address parameter name
|
protected String |
targetNameParameter
The target name parameter name
|
Constructor and Description |
---|
MultiPartHTTPRequestParser()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getContentPartAsString(Map<String,HTTPRequest.ContentPart<?>> contentPartsMap,
String parameter)
This function returns the content part string value.
|
protected Map<String,HTTPRequest.ContentPart<?>> |
getContentPartsAsMap(HTTPRequest httpRequest)
This function returns the HTTP request multi parts as map.
|
protected FileInfo |
getFileInfoFromInputDataImpl(HTTPRequest inputData)
This function returns the file info from the request data.
|
protected void |
initializeImpl(Map<String,String> configuration)
This function initializes the component.
|
protected void |
updateFaxJobFromInputDataImpl(HTTPRequest inputData,
FaxJob faxJob)
This function update the fax job from the request data.
This fax job will not have any file data. |
getFileInfoFromInputData, initialize, updateFaxJobFromInputData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFileInfoFromInputData, updateFaxJobFromInputData
initialize
protected String fileContentParameter
protected String fileNameParameter
protected String priorityParameter
protected String targetAddressParameter
protected String targetNameParameter
protected String senderNameParameter
protected String senderFaxNumberParameter
protected String senderEMailParameter
public MultiPartHTTPRequestParser()
protected void initializeImpl(Map<String,String> configuration)
initializeImpl
in class AbstractRequestParser<HTTPRequest>
configuration
- The component configurationprotected FileInfo getFileInfoFromInputDataImpl(HTTPRequest inputData)
getFileInfoFromInputDataImpl
in class AbstractRequestParser<HTTPRequest>
inputData
- The input dataprotected void updateFaxJobFromInputDataImpl(HTTPRequest inputData, FaxJob faxJob)
updateFaxJobFromInputDataImpl
in class AbstractRequestParser<HTTPRequest>
inputData
- The input datafaxJob
- The fax job to updateprotected String getContentPartAsString(Map<String,HTTPRequest.ContentPart<?>> contentPartsMap, String parameter)
contentPartsMap
- The content parts mapparameter
- The part parameter nameprotected Map<String,HTTPRequest.ContentPart<?>> getContentPartsAsMap(HTTPRequest httpRequest)
httpRequest
- The HTTP requestCopyright © 2009–2020 fax4j. All rights reserved.