public class ViewHTTPSession extends AbstractView implements jfd.ale.FieldToComponentMapper
Modifier and Type | Class and Description |
---|---|
(package private) class |
ViewHTTPSession.CheckBoxListener
Class that handles the checkboxes.
|
(package private) class |
ViewHTTPSession.ColoredTableCellRenderer |
(package private) class |
ViewHTTPSession.EscapeWindowCloser |
(package private) class |
ViewHTTPSession.FindBoxShower |
(package private) class |
ViewHTTPSession.GenerateScrapeableFileAction |
(package private) class |
ViewHTTPSession.JScrollPaneScroller |
(package private) class |
ViewHTTPSession.RequestOrResponseScroller |
(package private) class |
ViewHTTPSession.RequestResponseTabSelector |
(package private) class |
ViewHTTPSession.TextBoxScroller |
(package private) class |
ViewHTTPSession.TextHighlighter |
(package private) class |
ViewHTTPSession.TextWrapper |
(package private) class |
ViewHTTPSession.TransactionDeleter |
(package private) class |
ViewHTTPSession.TransactionDisplayer |
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JButton |
btnClearLog
Clears the log panel.
|
(package private) javax.swing.JButton |
btnClearTransactions
Stops and starts the deamon.
|
(package private) javax.swing.JButton |
btnDelete
Deletes the proxy session.
|
(package private) javax.swing.JButton |
btnDetectJavaScriptCookies
Detects JavaScript cookies.
|
(package private) javax.swing.JButton |
btnDisplayInBrowser
Displays the content of the response in a web browser.
|
(package private) javax.swing.JButton |
btnDisplayRawRequest
Displays the raw request.
|
(package private) javax.swing.JButton |
btnDisplayRawResponse
Displays the raw response.
|
(package private) javax.swing.JButton |
btnExport
Deletes the proxy session.
|
(package private) javax.swing.JButton |
btnFind
Finds stuff in the log.
|
(package private) javax.swing.JButton |
btnGo |
(package private) HelpButton |
btnPropertiesPanelHelp
The help button.
|
javax.swing.JButton |
btnStartStopDaemon
Stops and starts the deamon.
|
(package private) javax.swing.JComboBox |
cmbScrapingSessions |
javax.swing.JCheckBox |
jcbDontLogBinaryFiles
The don't log binary files checkbox.
|
(package private) javax.swing.JCheckBox |
jcbFilterTransactions
Indicates whether or not the transactions should be filtered.
|
(package private) javax.swing.JCheckBox |
jcbWrapTextPostData
Wraps the text in the POST box.
|
(package private) javax.swing.JCheckBox |
jcbWrapTextResponseContent
Wraps the content of the response.
|
(package private) javax.swing.JLabel |
lblContent
The content label.
|
javax.swing.JLabel |
lblExternalProxy
Indicates when an external proxy has been set.
|
(package private) javax.swing.JLabel |
lblGenerateScrapeableFile
Widgets used to generate a scrapeable file from a transaction.
|
(package private) javax.swing.JLabel |
lblHTTPTransactions
The label for the upper panel.
|
(package private) javax.swing.JLabel |
lblName
Used to set the name.
|
(package private) javax.swing.JLabel |
lblPort
Used to set the port.
|
(package private) javax.swing.JLabel |
lblPostData
The POST data label.
|
(package private) javax.swing.JLabel |
lblRequestHeaders
The headers label.
|
(package private) javax.swing.JLabel |
lblRequestLine
The request line label.
|
(package private) javax.swing.JLabel |
lblResponseHeaders
The headers label.
|
(package private) javax.swing.JLabel |
lblStatusLine
The status line label.
|
static org.apache.log4j.Logger |
log
Used for logging.
|
(package private) javax.swing.JPanel |
pnlAdvanced
Holds all of the advanced panel widgets.
|
(package private) javax.swing.JPanel |
pnlLog
Holds all of the log panel widgets.
|
(package private) javax.swing.JPanel |
pnlRequest
The request panel.
|
(package private) javax.swing.JPanel |
pnlResponse
The response panel.
|
(package private) javax.swing.JPanel |
pnlScriptInstancesRenderer
The script instances renderer.
|
(package private) ScrapingSessionComboBoxModel |
scrapingSessionComboBoxModel |
(package private) javax.swing.JScrollPane |
spContent
The scroll pane that will hold the content text area.
|
(package private) javax.swing.JScrollPane |
spPostData
The scroll pane that will hold the POST data text box.
|
(package private) javax.swing.JScrollPane |
spRequest
The scroll pane that holds the request.
|
(package private) javax.swing.JScrollPane |
spRequestHeaders
The scroll pane that will hold the request headers table.
|
(package private) javax.swing.JScrollPane |
spResponse
The scroll pane that holds the response.
|
(package private) javax.swing.JScrollPane |
spResponseHeaders
The scroll pane that will hold the response headers table.
|
(package private) javax.swing.JScrollPane |
spTextLog
Scroll pane that contains the text area.
|
(package private) javax.swing.JScrollPane |
spTransactionsTable
The scroll pane that will hold the table.
|
(package private) javax.swing.JScrollPane |
spUpper
The upper and lower scroll panes.
|
(package private) javax.swing.table.JTableHeader |
tbhRequestHeaders
The table header for the request headers table.
|
(package private) javax.swing.table.JTableHeader |
tbhResponseHeaders
The table header for the response headers table.
|
(package private) javax.swing.JTable |
tblRequestHeaders
Displays the request headers.
|
(package private) javax.swing.JTable |
tblResponseHeaders
Displays the response headers.
|
(package private) javax.swing.JTable |
tblTransactions
Displays the transactions.
|
(package private) TableModelRequestHeaders |
tmRequestHeaders
The table model that the request headers table will sit on top of.
|
(package private) TableModelResponseHeaders |
tmResponseHeaders
The table model that the response headers table will sit on top of.
|
(package private) TableModelTransactions |
tmTransactions
The table model that the transactions table will sit on top of.
|
(package private) javax.swing.JTabbedPane |
tpMain
The main tabbed pane.
|
(package private) javax.swing.JTabbedPane |
tpRequestResponse
The request/response tabbed pane.
|
(package private) org.fife.ui.rsyntaxtextarea.RSyntaxTextArea |
txtContent
The content text area.
|
(package private) javax.swing.JTextArea |
txtLog
Contains the log.
|
(package private) javax.swing.JTextField |
txtName |
(package private) javax.swing.JTextField |
txtPort |
(package private) javax.swing.JTextArea |
txtPostData
The POST text area.
|
(package private) javax.swing.JTextField |
txtRequestLine
The request line text field.
|
(package private) javax.swing.JTextField |
txtStatusLine
The status line text field.
|
Constructor and Description |
---|
ViewHTTPSession()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
displayFindBox()
Displays the "find" box used to find text in the HTML from the last scraped data.
|
void |
displayInBrowser()
Displays the body of the response in the system's default browser.
|
void |
displayRawRequest()
Displays the raw request corresponding to the current transaction.
|
void |
displayRawResponse()
Displays the raw response corresponding to the current transaction.
|
void |
displaySearchResult(ProxySearchResult searchResult)
Displays a search result in the lower panel.
|
void |
displayTransaction(int row)
Indicates that a row was clicked.
|
java.awt.Component |
getRenderer()
Returns the component this view is rendered on, in the event that it needs to be referenced by an external source.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
init()
Initializes the class.
|
java.awt.Component |
mapToComponent(java.lang.reflect.Field f)
Needed for ALE to work.
|
void |
restartProxyServer()
Restarts the proxy server only if it's already running.
|
void |
startProxyServer()
Sends off a message to start up the daemon.
|
void |
stopProxyServer()
Sends off a message to stop the daemon.
|
getController, setController
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static org.apache.log4j.Logger log
javax.swing.JTabbedPane tpMain
HelpButton btnPropertiesPanelHelp
javax.swing.JButton btnDelete
javax.swing.JButton btnExport
javax.swing.JLabel lblName
javax.swing.JTextField txtName
javax.swing.JLabel lblPort
javax.swing.JTextField txtPort
public javax.swing.JCheckBox jcbDontLogBinaryFiles
public javax.swing.JButton btnStartStopDaemon
public javax.swing.JLabel lblExternalProxy
javax.swing.JScrollPane spUpper
javax.swing.JLabel lblHTTPTransactions
javax.swing.JButton btnClearTransactions
javax.swing.JButton btnFind
javax.swing.JButton btnDetectJavaScriptCookies
javax.swing.JCheckBox jcbFilterTransactions
javax.swing.JTable tblTransactions
TableModelTransactions tmTransactions
javax.swing.JScrollPane spTransactionsTable
javax.swing.JTabbedPane tpRequestResponse
javax.swing.JPanel pnlRequest
javax.swing.JPanel pnlResponse
javax.swing.JLabel lblGenerateScrapeableFile
javax.swing.JComboBox cmbScrapingSessions
ScrapingSessionComboBoxModel scrapingSessionComboBoxModel
javax.swing.JButton btnGo
javax.swing.JScrollPane spRequest
javax.swing.JButton btnDisplayRawRequest
javax.swing.JLabel lblRequestLine
javax.swing.JTextField txtRequestLine
javax.swing.JLabel lblRequestHeaders
javax.swing.table.JTableHeader tbhRequestHeaders
javax.swing.JTable tblRequestHeaders
TableModelRequestHeaders tmRequestHeaders
javax.swing.JScrollPane spRequestHeaders
javax.swing.JLabel lblPostData
javax.swing.JTextArea txtPostData
javax.swing.JScrollPane spPostData
javax.swing.JCheckBox jcbWrapTextPostData
javax.swing.JScrollPane spResponse
javax.swing.JButton btnDisplayRawResponse
javax.swing.JButton btnDisplayInBrowser
javax.swing.JLabel lblStatusLine
javax.swing.JTextField txtStatusLine
javax.swing.JLabel lblResponseHeaders
javax.swing.table.JTableHeader tbhResponseHeaders
javax.swing.JTable tblResponseHeaders
TableModelResponseHeaders tmResponseHeaders
javax.swing.JScrollPane spResponseHeaders
javax.swing.JLabel lblContent
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea txtContent
javax.swing.JScrollPane spContent
javax.swing.JCheckBox jcbWrapTextResponseContent
javax.swing.JPanel pnlScriptInstancesRenderer
javax.swing.JPanel pnlLog
javax.swing.JButton btnClearLog
javax.swing.JTextArea txtLog
javax.swing.JScrollPane spTextLog
javax.swing.JPanel pnlAdvanced
public void init()
public void startProxyServer()
public void stopProxyServer()
public void restartProxyServer()
public void displayTransaction(int row)
row
- The row that was clicked.public void displaySearchResult(ProxySearchResult searchResult)
searchResult
- The ProxySearchResult
to display.public void displayRawRequest()
public void displayRawResponse()
public void displayInBrowser()
public void displayFindBox()
public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractView
ape
- An AppEvent
.public java.awt.Component getRenderer()
getRenderer
in class AbstractView
public java.awt.Component mapToComponent(java.lang.reflect.Field f) throws java.lang.Exception
mapToComponent
in interface jfd.ale.FieldToComponentMapper
java.lang.Exception