Class HttpReplyHdr
java.lang.Object
org.apache.jmeter.protocol.http.proxy.HttpReplyHdr
Utility class to generate HTTP responses of various types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Indicates the document was accepted.static String
Indicates a new file was created.static String
Client if forbidden to get the request service.static String
Never seen this used.static String
The server had a problem and could not fulfill the request.static String
The requested method is not implemented by the server.static String
Indicates a requested URL has moved to a new address or name.static String
Indicates the client is not allowed to access the object.static String
The requested object was not found.static String
Server does not do the requested feature.static String
formNotImplemented
(String reason) Server does not do the requested feature.static String
Indicates remote copy of the requested object is current.static String
Forms a http ok reply headerstatic String
Server is overloaded, client should try again latter.static String
Indicates only a partial response was sent.static String
Payment is required for service.static String
Indicates the client's proxies could not locate a server.static String
Indicates the request took to long.static String
Client not authorized for the request.
-
Method Details
-
formOk
Forms a http ok reply header- Parameters:
contentType
- the mime-type of the contentcontentLength
- the length of the content- Returns:
- a string with the header in it
-
formCreated
Indicates a new file was created.- Returns:
- The header in a string;
-
formAccepted
Indicates the document was accepted.- Returns:
- The header in a string;
-
formPartial
Indicates only a partial response was sent.- Returns:
- The header in a string;
-
formMoved
Indicates a requested URL has moved to a new address or name.- Returns:
- The header in a string;
-
formFound
Never seen this used.- Returns:
- The header in a string;
-
formMethod
The requested method is not implemented by the server.- Returns:
- The header in a string;
-
formNotModified
Indicates remote copy of the requested object is current.- Returns:
- The header in a string;
-
formUnauthorized
Client not authorized for the request.- Returns:
- The header in a string;
-
formPaymentNeeded
Payment is required for service.- Returns:
- The header in a string;
-
formForbidden
Client if forbidden to get the request service.- Returns:
- The header in a string;
-
formNotFound
The requested object was not found.- Returns:
- The header in a string;
-
formInternalError
The server had a problem and could not fulfill the request.- Returns:
- The header in a string;
-
formNotImplemented
Server does not do the requested feature.- Returns:
- The header in a string;
-
formNotImplemented
Server does not do the requested feature.- Parameters:
reason
- detailed information for causing the failure- Returns:
- The header in a string;
-
formOverloaded
Server is overloaded, client should try again latter.- Returns:
- The header in a string;
-
formTimeout
Indicates the request took to long.- Returns:
- The header in a string;
-
formServerNotFound
Indicates the client's proxies could not locate a server.- Returns:
- The header in a string;
-
formNotAllowed
Indicates the client is not allowed to access the object.- Returns:
- The header in a string;
-