Class HandlerMapping
java.lang.Object
com.azure.resourcemanager.appservice.models.HandlerMapping
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HandlerMapping>
public final class HandlerMapping
extends Object
implements com.azure.json.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the arguments property: Command-line arguments to be passed to the script processor.Get the extension property: Requests with this extension will be handled using the specified FastCGI application.static HandlerMapping
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of HandlerMapping from the JsonReader.Get the scriptProcessor property: The absolute path to the FastCGI application.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withArguments
(String arguments) Set the arguments property: Command-line arguments to be passed to the script processor.withExtension
(String extension) Set the extension property: Requests with this extension will be handled using the specified FastCGI application.withScriptProcessor
(String scriptProcessor) Set the scriptProcessor property: The absolute path to the FastCGI application.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HandlerMapping
public HandlerMapping()Creates an instance of HandlerMapping class.
-
-
Method Details
-
extension
Get the extension property: Requests with this extension will be handled using the specified FastCGI application.- Returns:
- the extension value.
-
withExtension
Set the extension property: Requests with this extension will be handled using the specified FastCGI application.- Parameters:
extension
- the extension value to set.- Returns:
- the HandlerMapping object itself.
-
scriptProcessor
Get the scriptProcessor property: The absolute path to the FastCGI application.- Returns:
- the scriptProcessor value.
-
withScriptProcessor
Set the scriptProcessor property: The absolute path to the FastCGI application.- Parameters:
scriptProcessor
- the scriptProcessor value to set.- Returns:
- the HandlerMapping object itself.
-
arguments
Get the arguments property: Command-line arguments to be passed to the script processor.- Returns:
- the arguments value.
-
withArguments
Set the arguments property: Command-line arguments to be passed to the script processor.- Parameters:
arguments
- the arguments value to set.- Returns:
- the HandlerMapping object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<HandlerMapping>
- Throws:
IOException
-
fromJson
Reads an instance of HandlerMapping from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of HandlerMapping if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the HandlerMapping.
-