Apache JMeter

org.apache.jmeter.protocol.http.proxy
Class HttpReplyHdr

java.lang.Object
  extended by org.apache.jmeter.protocol.http.proxy.HttpReplyHdr

public final class HttpReplyHdr
extends java.lang.Object

Utility class to generate HTTP responses of various types.

Version:
$Revision: 739445 $

Method Summary
static java.lang.String formAccepted()
          Indicates the document was accepted.
static java.lang.String formCreated()
          Indicates a new file was created.
static java.lang.String formForbidden()
          Client if forbidden to get the request service.
static java.lang.String formFound()
          Never seen this used.
static java.lang.String formInternalError()
          The server had a problem and could not fulfill the request.
static java.lang.String formMethod()
          The requested method is not implemented by the server.
static java.lang.String formMoved()
          Indicates a requested URL has moved to a new address or name.
static java.lang.String formNotAllowed()
          Indicates the client is not allowed to access the object.
static java.lang.String formNotFound()
          The requested object was not found.
static java.lang.String formNotImplemented()
          Server does not do the requested feature.
static java.lang.String formNotImplemented(java.lang.String reason)
          Server does not do the requested feature.
static java.lang.String formNotModified()
          Indicates remote copy of the requested object is current.
static java.lang.String formOk(java.lang.String contentType, long contentLength)
          Forms a http ok reply header
static java.lang.String formOverloaded()
          Server is overloaded, client should try again latter.
static java.lang.String formPartial()
          Indicates only a partial responce was sent.
static java.lang.String formPaymentNeeded()
          Payment is required for service.
static java.lang.String formServerNotFound()
          Indicates the client's proxies could not locate a server.
static java.lang.String formTimeout()
          Indicates the request took to long.
static java.lang.String formUnautorized()
          Client not otherized for the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

formOk

public static java.lang.String formOk(java.lang.String contentType,
                                      long contentLength)
Forms a http ok reply header

Parameters:
contentType - the mime-type of the content
contentLength - the length of the content
Returns:
a string with the header in it

formCreated

public static java.lang.String formCreated()
Indicates a new file was created.

Returns:
The header in a string;

formAccepted

public static java.lang.String formAccepted()
Indicates the document was accepted.

Returns:
The header in a string;

formPartial

public static java.lang.String formPartial()
Indicates only a partial responce was sent.

Returns:
The header in a string;

formMoved

public static java.lang.String formMoved()
Indicates a requested URL has moved to a new address or name.

Returns:
The header in a string;

formFound

public static java.lang.String formFound()
Never seen this used.

Returns:
The header in a string;

formMethod

public static java.lang.String formMethod()
The requested method is not implemented by the server.

Returns:
The header in a string;

formNotModified

public static java.lang.String formNotModified()
Indicates remote copy of the requested object is current.

Returns:
The header in a string;

formUnautorized

public static java.lang.String formUnautorized()
Client not otherized for the request.

Returns:
The header in a string;

formPaymentNeeded

public static java.lang.String formPaymentNeeded()
Payment is required for service.

Returns:
The header in a string;

formForbidden

public static java.lang.String formForbidden()
Client if forbidden to get the request service.

Returns:
The header in a string;

formNotFound

public static java.lang.String formNotFound()
The requested object was not found.

Returns:
The header in a string;

formInternalError

public static java.lang.String formInternalError()
The server had a problem and could not fulfill the request.

Returns:
The header in a string;

formNotImplemented

public static java.lang.String formNotImplemented()
Server does not do the requested feature.

Returns:
The header in a string;

formNotImplemented

public static java.lang.String formNotImplemented(java.lang.String reason)
Server does not do the requested feature.

Parameters:
reason - detailed information for causing the failure
Returns:
The header in a string;

formOverloaded

public static java.lang.String formOverloaded()
Server is overloaded, client should try again latter.

Returns:
The header in a string;

formTimeout

public static java.lang.String formTimeout()
Indicates the request took to long.

Returns:
The header in a string;

formServerNotFound

public static java.lang.String formServerNotFound()
Indicates the client's proxies could not locate a server.

Returns:
The header in a string;

formNotAllowed

public static java.lang.String formNotAllowed()
Indicates the client is not allowed to access the object.

Returns:
The header in a string;

Apache JMeter

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.