Package com.sodius.oslc.server
Class OslcRequests.HttpServletRequestWrapperBuilder
java.lang.Object
com.sodius.oslc.server.OslcRequests.HttpServletRequestWrapperBuilder
- Enclosing class:
OslcRequests
A builder of request wrapper.
- Since:
- 1.14.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionOverrides the name of the authentication scheme used to protect the servlet.build()Creates a wrapped request instance with the values overridden through this builder.Overrides the values of a given header.Overrides the name of the HTTP method.removeHeader(String name) Removes a given header.
-
Method Details
-
method
Overrides the name of the HTTP method.- Parameters:
method- the new name of the HTTP method.- Returns:
- this builder instance.
- See Also:
-
authType
Overrides the name of the authentication scheme used to protect the servlet.- Parameters:
authType- the new name of the authentication scheme.- Returns:
- this builder instance.
- See Also:
-
header
Overrides the values of a given header. This method can be used to add a header that is not present in underlying request.- Parameters:
name- the name of the header to override.values- the new values of the header.- Returns:
- this builder instance.
- See Also:
-
removeHeader
Removes a given header.- Parameters:
name- the name of the header to remove.- Returns:
- this builder instance.
-
build
Creates a wrapped request instance with the values overridden through this builder.- Returns:
- a wrapped request with some overridden values.
-