Class HandlerMapping
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.HandlerMapping
-
public final class HandlerMapping extends Object
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 Constructor Description HandlerMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarguments()Get the arguments property: Command-line arguments to be passed to the script processor.Stringextension()Get the extension property: Requests with this extension will be handled using the specified FastCGI application.StringscriptProcessor()Get the scriptProcessor property: The absolute path to the FastCGI application.voidvalidate()Validates the instance.HandlerMappingwithArguments(String arguments)Set the arguments property: Command-line arguments to be passed to the script processor.HandlerMappingwithExtension(String extension)Set the extension property: Requests with this extension will be handled using the specified FastCGI application.HandlerMappingwithScriptProcessor(String scriptProcessor)Set the scriptProcessor property: The absolute path to the FastCGI application.
-
-
-
Method Detail
-
extension
public String extension()
Get the extension property: Requests with this extension will be handled using the specified FastCGI application.- Returns:
- the extension value.
-
withExtension
public HandlerMapping withExtension(String extension)
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
public String scriptProcessor()
Get the scriptProcessor property: The absolute path to the FastCGI application.- Returns:
- the scriptProcessor value.
-
withScriptProcessor
public HandlerMapping withScriptProcessor(String scriptProcessor)
Set the scriptProcessor property: The absolute path to the FastCGI application.- Parameters:
scriptProcessor- the scriptProcessor value to set.- Returns:
- the HandlerMapping object itself.
-
arguments
public String arguments()
Get the arguments property: Command-line arguments to be passed to the script processor.- Returns:
- the arguments value.
-
withArguments
public HandlerMapping withArguments(String arguments)
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.
-
-