Package de.xima.fc.mdl.fdv
Enum EResponseType
- All Implemented Interfaces:
Serializable
,Comparable<EResponseType>
An enumeration of possible HTTP response types.
- Author:
- XIMA MEDIA GmbH
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly sends response headers with the HTTP response, but no body content.Redirects to the form record with the process id specified as valueSends an HTML document as the HTTP response.Sends a JSON string as the HTTP response.Sends a binary file as the HTTP response.Sends a custom HTML template as the HTTP response.Sends a system HTML template as the HTTP response.Send a redirect (usually 303) as the HTTP response.Sends an XMLstring as the HTTP response. -
Method Summary
Modifier and TypeMethodDescriptionstatic EResponseType
Returns the enum constant of this type with the specified name.static EResponseType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SHOW_FILE
Sends a binary file as the HTTP response. You should also provide a content type. TheIServletResponse.getBinValue()
should contain the binary data of the file,IServletResponse.getValue()
should contain the file name. -
TEMPLATE_SYSTEM
Sends a system HTML template as the HTTP response. TheIServletResponse.getValue()
should be an HTML string. An HTML template is created by the system and this HTML string is placed inside the BODY.- See Also:
-
WEITERLEITUNG
Send a redirect (usually 303) as the HTTP response. TheIServletResponse.getValue()
should contain the target URL. -
FORM_RECORD
Redirects to the form record with the process id specified as value -
TEMPLATE
Sends a custom HTML template as the HTTP response. TheIServletResponse.getValue()
should be an HTML string. An HTML template is created by the system and this HTML string is placed inside the BODY.- See Also:
-
HTML
Sends an HTML document as the HTTP response. -
JSON
Sends a JSON string as the HTTP response. TheIServletResponse.getValue()
should contain the serialized JSON string. -
XML
Sends an XMLstring as the HTTP response. TheIServletResponse.getValue()
should contain the serialized XML string. -
EMPTY
Only sends response headers with the HTTP response, but no body content.IServletResponse.getValue()
andIServletResponse.getBinValue()
will be ignored.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-