org.fax4j.bridge.http.HTTP2FaxBridge Maven / Gradle / Ivy
package org.fax4j.bridge.http;
import org.fax4j.bridge.AbstractContextFaxBridge;
import org.fax4j.spi.http.HTTPRequest;
/**
* This is the HTTP web2fax based implementation of the fax bridge.
*
* Below table describes the configuration values relevant for this class.
* Configuration:
*
*
* Name
* Description
* Preconfigured Value
* Default Value
* Mandatory
*
*
* org.fax4j.bridge.vendor.policy.class.name
* The vendor policy class name.
* org.fax4j.bridge.EmptyVendorPolicy
* org.fax4j.bridge.EmptyVendorPolicy
* false
*
*
* org.fax4j.bridge.http.request.parser.class.name
* The HTTP request parser class name used to convert the HTTP request to fax job data.
* org.fax4j.bridge.http.MultiPartHTTPRequestParser
* org.fax4j.bridge.http.MultiPartHTTPRequestParser
* false
*
*
*
* @author Sagie Gur-Ari
* @version 1.04
* @since 0.40.6
*/
public class HTTP2FaxBridge extends AbstractContextFaxBridge
{
/**The HTTP request parser class name*/
public static final String HTTP_REQUEST_PARSER_CLASS_NAME_PROPERTY_KEY="org.fax4j.bridge.http.request.parser.class.name";
/**
* This is the class constructor.
*/
public HTTP2FaxBridge()
{
super();
}
/**
* This function returns the key used to fetch the request parser
* class name from the fax4j.properties.
*
* @return The request parser class name configuration key
*/
@Override
protected String getRequestParserConfigurationKey()
{
return HTTP2FaxBridge.HTTP_REQUEST_PARSER_CLASS_NAME_PROPERTY_KEY;
}
/**
* This function returns the default request parser class name.
*
* @return The default request parser class name
*/
@Override
protected String getDefaultParserClassName()
{
return MultiPartHTTPRequestParser.class.getName();
}
}