HandlerMapping Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. HandlerMapping
- com.
Implements
public final class HandlerMapping
implements JsonSerializable<HandlerMapping>
The IIS handler mappings used to define which handler processes HTTP requests with certain extension. For example, it is used to configure php-cgi.exe process to handle all HTTP requests with *.php extension.
Constructor Summary
Constructor | Description |
---|---|
HandlerMapping() |
Creates an instance of Handler |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
arguments()
Get the arguments property: Command-line arguments to be passed to the script processor. |
String |
extension()
Get the extension property: Requests with this extension will be handled using the specified FastCGI application. |
static
Handler |
fromJson(JsonReader jsonReader)
Reads an instance of Handler |
String |
scriptProcessor()
Get the script |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Handler |
withArguments(String arguments)
Set the arguments property: Command-line arguments to be passed to the script processor. |
Handler |
withExtension(String extension)
Set the extension property: Requests with this extension will be handled using the specified FastCGI application. |
Handler |
withScriptProcessor(String scriptProcessor)
Set the script |
Methods inherited from java.lang.Object
Constructor Details
HandlerMapping
public HandlerMapping()
Creates an instance of HandlerMapping class.
Method Details
arguments
public String arguments()
Get the arguments property: Command-line arguments to be passed to the script processor.
Returns:
extension
public String extension()
Get the extension property: Requests with this extension will be handled using the specified FastCGI application.
Returns:
fromJson
public static HandlerMapping fromJson(JsonReader jsonReader)
Reads an instance of HandlerMapping from the JsonReader.
Parameters:
Returns:
Throws:
scriptProcessor
public String scriptProcessor()
Get the scriptProcessor property: The absolute path to the FastCGI application.
Returns:
toJson
validate
public void validate()
Validates the instance.
withArguments
public HandlerMapping withArguments(String arguments)
Set the arguments property: Command-line arguments to be passed to the script processor.
Parameters:
Returns:
withExtension
public HandlerMapping withExtension(String extension)
Set the extension property: Requests with this extension will be handled using the specified FastCGI application.
Parameters:
Returns:
withScriptProcessor
public HandlerMapping withScriptProcessor(String scriptProcessor)
Set the scriptProcessor property: The absolute path to the FastCGI application.
Parameters:
Returns:
Applies to
Azure SDK for Java