A B C F G H I N P R S T 

A

addElement(String) - Method in class ch.racic.caps.utils.html.HTMLElement
Add a child element.
addText(String) - Method in class ch.racic.caps.utils.html.HTMLElement
Add child text.

B

bringItUpRunning(ICapsConfiguration) - Static method in class ch.racic.caps.CAPServer
Factory to instantiate the proxy, start it and wait until it is listening prior to returning with the CAPS instance.

C

CapsConfiguration - Class in ch.racic.caps
Created by rac on 08.02.15.
CapsConfiguration() - Constructor for class ch.racic.caps.CapsConfiguration
Constructor for the reference implementation of the configuration object.
CAPServer - Class in ch.racic.caps
Created by rac on 08.02.15.
CAPServer(ICapsConfiguration) - Constructor for class ch.racic.caps.CAPServer
CAPS main thread constructor Initialize the server with a configuration object and use the start() method to start listening.
ch.racic.caps - package ch.racic.caps
 
ch.racic.caps.exceptions - package ch.racic.caps.exceptions
 
ch.racic.caps.utils - package ch.racic.caps.utils
 
ch.racic.caps.utils.html - package ch.racic.caps.utils.html
Simple HTML document model.
ConnectionHandler - Class in ch.racic.caps
Created by rac on 16.02.15.
ConnectionHandler(Socket, ICapsConfiguration) - Constructor for class ch.racic.caps.ConnectionHandler
Handles a single incoming connection.

F

FileUtils - Class in ch.racic.caps.utils
Created by rac on 22.02.15.
FileUtils() - Constructor for class ch.racic.caps.utils.FileUtils
 

G

getBody() - Method in class ch.racic.caps.utils.html.HTMLDocument
Accessor for body element.
getConnectionTimeout() - Method in class ch.racic.caps.CapsConfiguration
Get the connection timeout set for the sockets.
getConnectionTimeout() - Method in interface ch.racic.caps.ICapsConfiguration
Get the connection timeout set for the sockets.
getFileExtension(String) - Static method in class ch.racic.caps.utils.FileUtils
Tries to get the extension of the given file path.
getHead() - Method in class ch.racic.caps.utils.html.HTMLDocument
Accessor for head element.
getProxyListenerPort() - Method in class ch.racic.caps.CapsConfiguration
Get the current setting of the proxy listener port.
getProxyListenerPort() - Method in class ch.racic.caps.CAPServer
Get the current proxy port, will be null if proxy startup is not yet finished or not initiated.
getProxyListenerPort() - Method in interface ch.racic.caps.ICapsConfiguration
Get the current setting of the proxy listener port.
getProxySslContext() - Method in class ch.racic.caps.CapsConfiguration
Used by CAPS to retrieve the SSLContext for the client connection (proxy => client).
getProxySslContext() - Method in interface ch.racic.caps.ICapsConfiguration
Used by CAPS to retrieve the SSLContext for the client connection (proxy => client).
getProxyString() - Method in class ch.racic.caps.CAPServer
The proxy string has the form {hostname}:{port} and can be used to create a selenium proxy object.
getTargetProxy() - Method in class ch.racic.caps.CapsConfiguration
Get the proxy which is required for the connection to the target server.
getTargetProxy() - Method in interface ch.racic.caps.ICapsConfiguration
Get the proxy which is required for the connection to the target server.
getTargetSslContext() - Method in class ch.racic.caps.CapsConfiguration
Used by CAPS to retrieve the SSLContext for the target connection (proxy => target)
getTargetSslContext() - Method in interface ch.racic.caps.ICapsConfiguration
Used by CAPS to retrieve the SSLContext for the target connection (proxy => target)
getThreadPoolSize() - Method in class ch.racic.caps.CapsConfiguration
 
getThreadPoolSize() - Method in interface ch.racic.caps.ICapsConfiguration
Get the desired thread pool size for the ConnectionHandler threads.

H

HTMLDocument - Class in ch.racic.caps.utils.html
Document node for simple HTML model.
HTMLDocument() - Constructor for class ch.racic.caps.utils.html.HTMLDocument
Constructor.
HTMLElement - Class in ch.racic.caps.utils.html
Element node for simple HTML model.
HTMLElement(String) - Constructor for class ch.racic.caps.utils.html.HTMLElement
Constructor.
HTMLElement() - Constructor for class ch.racic.caps.utils.html.HTMLElement
Constructor for HTML fragment.
HTMLText - Class in ch.racic.caps.utils.html
Text node for simple HTML model.
HTMLText(String) - Constructor for class ch.racic.caps.utils.html.HTMLText
Constructor.

I

ICapsConfiguration - Interface in ch.racic.caps
Interface that can be used to provide your own implementation of the proxy configuration and the way the SSLContext is created.
IOUtils - Class in ch.racic.caps.utils
Created by rac on 21.02.15.
IOUtils() - Constructor for class ch.racic.caps.utils.IOUtils
 

N

NotStartedException - Exception in ch.racic.caps.exceptions
Created by rac on 21.02.15.
NotStartedException(String) - Constructor for exception ch.racic.caps.exceptions.NotStartedException
Used if server could not have been started with the given timeouts.

P

PROJECT_NAME - Static variable in class ch.racic.caps.CAPServer
 
PROJECT_VERSION - Static variable in class ch.racic.caps.CAPServer
 

R

replaceExtension(String, String) - Static method in class ch.racic.caps.utils.FileUtils
Replaces the current extension with something else.
replaceLast(String, String, String) - Static method in class ch.racic.caps.utils.StringUtils
Replaces the last occurrence of the given regex (can be a simple String) in a String.
resourceAsString(String, String) - Static method in class ch.racic.caps.utils.IOUtils
Use this classes ClassLoader to get the resource InputStream and convert it to a String.
resourceAsString(String) - Static method in class ch.racic.caps.utils.IOUtils
Use this classes ClassLoader to get the resource InputStream and convert it to a UTF-8 String.
run() - Method in class ch.racic.caps.CAPServer
The main loop thread which starts the server and listens for new socket connections until it gets shutdown.
run() - Method in class ch.racic.caps.ConnectionHandler
 
run() - Method in class ch.racic.caps.utils.StreamCopyThread
 

S

setConnectionTimeout(long) - Method in class ch.racic.caps.CapsConfiguration
Set the connection timeout used in the sockets.
setProxyKeyStorePassword(String) - Method in class ch.racic.caps.CapsConfiguration
Password needed to unlock the proxy KeyStore
setProxyKeyStorePath(String) - Method in class ch.racic.caps.CapsConfiguration
Set the server certificate which the proxy uses for the handshake with the source browser.
setProxyKeyStoreType(String) - Method in class ch.racic.caps.CapsConfiguration
The type of the proxy KeyStore.
setProxyListenerPort(int) - Method in class ch.racic.caps.CapsConfiguration
Set the proxy listener port to be used.
setProxySslContext(SSLContext) - Method in class ch.racic.caps.CapsConfiguration
Set the proxy SSLContext directly, no need to set proxy KeyStore after this.
setTargetKeyStorePassword(String) - Method in class ch.racic.caps.CapsConfiguration
Password needed to unlock the KeyStore
setTargetKeyStorePath(String) - Method in class ch.racic.caps.CapsConfiguration
Set the path to the desired KeyStore file.
setTargetKeyStoreType(String) - Method in class ch.racic.caps.CapsConfiguration
The type of the target KeyStore.
setTargetProxy(Proxy) - Method in class ch.racic.caps.CapsConfiguration
Set the proxy which is required for the connection to the target server.
setTargetSslContext(SSLContext) - Method in class ch.racic.caps.CapsConfiguration
Set the target SSLContext directly, no need to set target TrustStore or KeyStore after this.
setTargetTrustStorePassword(String) - Method in class ch.racic.caps.CapsConfiguration
Password needed to unlock the TrustStore.
setTargetTrustStorePath(String) - Method in class ch.racic.caps.CapsConfiguration
Set the path to the desired TrustStore file.
setTargetTrustStoreType(String) - Method in class ch.racic.caps.CapsConfiguration
The type of the target TrustStore.
setThreadPoolSize(int) - Method in class ch.racic.caps.CapsConfiguration
Set the thread pool size to limit how many concurrent open connections can be handled, remaining will be queued.
shutdown() - Method in class ch.racic.caps.CAPServer
Initiate shutdown of the proxy server.
StreamCopyThread - Class in ch.racic.caps.utils
Created by rac on 17.02.15.
StreamCopyThread(InputStream, OutputStream, int, boolean) - Constructor for class ch.racic.caps.utils.StreamCopyThread
Thread used to copy all content from an InputStream to an OutputStream.
StringUtils - Class in ch.racic.caps.utils
Created by rac on 22.02.15.
StringUtils() - Constructor for class ch.racic.caps.utils.StringUtils
 

T

toString(InputStream, String) - Static method in class ch.racic.caps.utils.IOUtils
Simple looper which takes an InputStream fully and returns it as String.
toString(InputStream) - Static method in class ch.racic.caps.utils.IOUtils
Simple looper which takes an InputStream fully and returns it as UTF-8 String.
toStringBuilder(StringBuilder, boolean) - Method in class ch.racic.caps.utils.html.HTMLElement
Write HTML to string buffer.
toStringBuilder(StringBuilder, boolean) - Method in class ch.racic.caps.utils.html.HTMLText
Write HTML to string buffer.
A B C F G H I N P R S T 

Copyright © 2015. All rights reserved.