Overview
Package
Class
Deprecated
Index
Help
Groovy Documentation
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
_
A
AbstractEncoder
- Class in
betamax.encoding
AbstractMessage
- Class in
betamax.proxy
addHeader
(String, String)
- Method in
ServletResponseImpl
addHeader
(String, String)
- Method in
WritableResponse
Adds a header to this response.
apply
(Statement, FrameworkMethod, Object)
- Method in
Recorder
B
Betamax
- Annotation Type in
betamax
C
compare
(Request, Request)
- Method in
MatchRule
compare
(Property, Property)
- Method in
OrderedPropertyComparator
createPropertySet
(Class, BeanAccess)
- Method in
TapePropertyUtils
D
decode
(InputStream, String)
- Method in
AbstractEncoder
DEFAULT_PROXY_PORT
- Field in
Recorder
DEFAULT_PROXY_TIMEOUT
- Field in
Recorder
DEFAULT_TAPE_ROOT
- Field in
Recorder
DeflateEncoder
- Class in
betamax.encoding
E
ejectTape
()
- Method in
Recorder
'Ejects' the current _tape_, writing its content to file.
encode
(String, String)
- Method in
AbstractEncoder
F
fileFor
(String)
- Method in
TapeLoader
@return an appropriate file for storing a tape with the supplied name.
fileFor
(String)
- Method in
YamlTapeLoader
G
getBodyAsBinary
()
- Method in
Message
Returns the message body in its raw binary form.
getBodyAsBinary
()
- Method in
RecordedRequest
getBodyAsBinary
()
- Method in
RecordedResponse
getBodyAsBinary
()
- Method in
ServletRequestImpl
getBodyAsBinary
()
- Method in
ServletResponseImpl
getBodyAsText
()
- Method in
AbstractMessage
getBodyAsText
()
- Method in
Message
Returns the message body as a string.
getBodyAsText
()
- Method in
RecordedRequest
getBodyAsText
()
- Method in
RecordedResponse
getCharset
()
- Method in
AbstractMessage
getCharset
()
- Method in
ServletRequestImpl
getCharset
()
- Method in
ServletResponseImpl
getContentType
()
- Method in
AbstractMessage
getContentType
()
- Method in
RecordedResponse
getContentType
()
- Method in
Response
@return the content MIME type of the response.
getContentType
()
- Method in
ServletRequestImpl
getContentType
()
- Method in
ServletResponseImpl
getDecodingInputStream
(InputStream)
- Method in
AbstractEncoder
getDecodingInputStream
(InputStream)
- Method in
DeflateEncoder
getDecodingInputStream
(InputStream)
- Method in
GzipEncoder
getEncoding
()
- Method in
AbstractMessage
getEncoding
()
- Method in
ServletRequestImpl
getEncoding
()
- Method in
ServletResponseImpl
getEncodingOutputStream
(OutputStream)
- Method in
AbstractEncoder
getEncodingOutputStream
(OutputStream)
- Method in
DeflateEncoder
getEncodingOutputStream
(OutputStream)
- Method in
GzipEncoder
getHeader
(String)
- Method in
AbstractMessage
getHeader
(String)
- Method in
Message
@param name an HTTP header name.
getHeader
(String)
- Method in
RecordedRequest
getHeader
(String)
- Method in
RecordedResponse
getHeaders
()
- Method in
Message
@return all HTTP headers attached to this message.
getHeaders
()
- Method in
ServletRequestImpl
getHeaders
()
- Method in
ServletResponseImpl
getMethod
()
- Method in
Request
@return the request method.
getMethod
()
- Method in
ServletRequestImpl
getName
()
- Method in
Tape
@return The name of the tape.
getOutputStream
()
- Method in
AbstractMessage
getOutputStream
()
- Method in
WritableResponse
Returns a stream that can be used to write data to the response body.
getProperties
(Class)
- Method in
GroovyRepresenter
getStatus
()
- Method in
Response
@return the HTTP status code of the response.
getStatus
()
- Method in
ServletResponseImpl
getTape
()
- Method in
Recorder
Gets the current active _tape_.
getUri
()
- Method in
Request
@return the target URI of the request.
getUri
()
- Method in
ServletRequestImpl
getUrl
()
- Method in
SimpleServer
getWriter
()
- Method in
AbstractMessage
getWriter
()
- Method in
WritableResponse
Returns a `Writer` that can be used to write text to the response body.
GroovyRepresenter
- Class in
betamax.tape.yaml
Ensures `metaClass` property is not dumped to YAML.
GzipEncoder
- Class in
betamax.encoding
H
handle
(String, Request, HttpServletRequest, HttpServletResponse)
- Method in
ProxyHandler
hasBody
()
- Method in
Message
@return `true` if the message currently contains a body, `false` otherwise.
hasBody
()
- Method in
RecordedRequest
hasBody
()
- Method in
RecordedResponse
hasBody
()
- Method in
ServletRequestImpl
hasBody
()
- Method in
ServletResponseImpl
I
initOutputStream
()
- Method in
AbstractMessage
initOutputStream
()
- Method in
ServletRequestImpl
initOutputStream
()
- Method in
ServletResponseImpl
insertTape
(String, Map)
- Method in
Recorder
Inserts a tape either creating a new one or loading an existing file from `tapeRoot`.
interceptRequest
(Request, Response)
- Method in
RecordAndPlaybackProxyInterceptor
interceptRequest
(Request, Response)
- Method in
VetoingProxyInterceptor
interceptResponse
(Request, Response)
- Method in
RecordAndPlaybackProxyInterceptor
interceptResponse
(Request, Response)
- Method in
VetoingProxyInterceptor
isDirty
()
- Method in
StorableTape
@return `true` if the tape content has changed since last being loaded from disk, `false` otherwise.
isDirty
()
- Method in
YamlTape
isReadable
()
- Method in
MemoryTape
isReadable
()
- Method in
Tape
@return `true` if the tape is readable, `false` otherwise.
isRunning
()
- Method in
SimpleServer
isTextContentType
(String)
- Method in
MemoryTape
isWritable
()
- Method in
MemoryTape
isWritable
()
- Method in
Tape
@return `true` if the tape is writable, `false` otherwise.
J
K
L
lifeCycleStarted
(LifeCycle)
- Method in
SimpleServer
lifeCycleStopped
(LifeCycle)
- Method in
SimpleServer
loadTape
(String)
- Method in
TapeLoader
Loads the named tape or returns a new blank tape if an existing tape cannot be located.
loadTape
(String)
- Method in
YamlTapeLoader
M
matches
(RecordedRequest)
- Method in
RequestMatcher
MatchRule
- Enum in
betamax
Implements a request matching rule for finding recordings on a tape.
MemoryTape
- Class in
betamax.tape
Represents a set of recorded HTTP interactions that can be played back or appended to.
Message
- Interface in
betamax.proxy
An abstraction of an HTTP request or response.
N
O
OrderedPropertyComparator
- Class in
betamax.tape.yaml
OrderedPropertyComparator
(List)
- Constructor in
OrderedPropertyComparator
overrideProxySettings
()
- Method in
Recorder
P
play
(Response)
- Method in
MemoryTape
play
(Response)
- Method in
Tape
Plays back a previously recorded interaction to the supplied response.
ProxyHandler
- Class in
betamax.proxy.jetty
ProxyServer
- Class in
betamax.proxy.jetty
ProxyServer
()
- Constructor in
ProxyServer
Q
R
readFrom
(Reader)
- Method in
YamlTape
record
(Request, Response)
- Method in
MemoryTape
record
(Request, Response)
- Method in
Tape
Records a new interaction to the tape.
record
(Request, Response)
- Method in
YamlTape
RecordAndPlaybackProxyInterceptor
- Class in
betamax.proxy
RecordAndPlaybackProxyInterceptor
(Recorder)
- Constructor in
RecordAndPlaybackProxyInterceptor
RecordedInteraction
- Class in
betamax.tape
RecordedRequest
- Class in
betamax.tape
RecordedResponse
- Class in
betamax.tape
Recorder
- Class in
betamax
This is the main interface to the Betamax proxy.
Recorder
(Properties)
- Constructor in
Recorder
representData
(Object)
- Method in
TapeRepresenter.RepresentURI
representJavaBeanProperty
(Object, Property, Object, Tag)
- Method in
TapeRepresenter
representMapping
(Tag, Map, Boolean)
- Method in
TapeRepresenter
Request
- Interface in
betamax.proxy
RequestMatcher
- Class in
betamax.tape
RequestMatcher
(Request, Comparator)
- Constructor in
RequestMatcher
reset
()
- Method in
MemoryTape
reset
()
- Method in
Tape
Resets the tape so that no recorded interaction is ready to play.
Response
- Interface in
betamax.proxy
restoreOriginalProxySettings
()
- Method in
Recorder
S
seek
(Request)
- Method in
MemoryTape
seek
(Request)
- Method in
Tape
Attempts to find a recorded interaction on the tape that matches the supplied request's method and URI.
ServletRequestImpl
- Class in
betamax.proxy.servlet
ServletRequestImpl
(HttpServletRequest)
- Constructor in
ServletRequestImpl
ServletResponseImpl
- Class in
betamax.proxy.servlet
ServletResponseImpl
(HttpServletResponse)
- Constructor in
ServletResponseImpl
setError
(int, String)
- Method in
ServletResponseImpl
setError
(int, String)
- Method in
WritableResponse
setMatchRules
(Comparator[])
- Method in
MemoryTape
setMode
(TapeMode)
- Method in
MemoryTape
setMode
(TapeMode)
- Method in
Tape
@param mode the new record mode of the tape.
setPort
(int)
- Method in
SimpleServer
setStatus
(int)
- Method in
ServletResponseImpl
setStatus
(int)
- Method in
WritableResponse
SimpleServer
- Class in
betamax.proxy.jetty
SimpleServer
(int)
- Constructor in
SimpleServer
size
()
- Method in
MemoryTape
size
()
- Method in
Tape
@return the number of recorded HTTP interactions currently stored on the tape.
start
(Recorder)
- Method in
ProxyServer
start
(Handler)
- Method in
SimpleServer
stop
()
- Method in
SimpleServer
StorableTape
- Interface in
betamax.tape
A `Tape` that can be read from an written to a backing store.
T
Tape
- Interface in
betamax
Represents a set of recorded HTTP interactions that can be played back or appended to.
TapeLoader
- Interface in
betamax
The interface for factories that load tapes from file storage.
TapeLoadException
- Class in
betamax.tape
TapeMode
- Enum in
betamax
TapePropertyUtils
- Class in
betamax.tape.yaml
TapeRepresenter
- Class in
betamax.tape.yaml
Applies a fixed ordering to properties and excludes `null` valued properties, empty collections and empty maps.
TapeRepresenter
()
- Constructor in
TapeRepresenter
toString
()
- Method in
MemoryTape
U
V
VetoingProxyInterceptor
- Interface in
betamax.proxy
W
withTape
(String, Map, Closure)
- Method in
Recorder
Runs the supplied closure after starting the Betamax proxy and inserting a _tape_.
WritableResponse
- Interface in
betamax.proxy
writeTape
(StorableTape)
- Method in
TapeLoader
writeTape
(StorableTape)
- Method in
YamlTapeLoader
writeTo
(Writer)
- Method in
StorableTape
Writes the current state of the tape to `writer`.
writeTo
(Writer)
- Method in
YamlTape
X
X_BETAMAX
- Field in
RecordAndPlaybackProxyInterceptor
Header placed in the response to indicate whether the response was recorded or played back.
Y
YamlTape
- Class in
betamax.tape.yaml
YamlTapeLoader
- Class in
betamax.tape.yaml
YamlTapeLoader
(File)
- Constructor in
YamlTapeLoader
Z
_
Groovy Documentation