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 StringIndicates the document was accepted.static StringIndicates a new file was created.static StringClient if forbidden to get the request service.static StringNever seen this used.static StringThe server had a problem and could not fulfill the request.static StringThe requested method is not implemented by the server.static StringIndicates a requested URL has moved to a new address or name.static StringIndicates the client is not allowed to access the object.static StringThe requested object was not found.static StringServer does not do the requested feature.static StringformNotImplemented(String reason) Server does not do the requested feature.static StringIndicates remote copy of the requested object is current.static StringForms a http ok reply headerstatic StringServer is overloaded, client should try again latter.static StringIndicates only a partial response was sent.static StringPayment is required for service.static StringIndicates the client's proxies could not locate a server.static StringIndicates the request took to long.static StringClient 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;
-