Skip navigation links
B C D E G H I M O S T U V 

B

Browser(UserAgentUtil.BrowserFamily, UserAgentUtil.BrowserMajorVersion, String) - Constructor for class com.atlassian.http.mime.UserAgentUtil.Browser
 
BrowserUtils - Class in com.atlassian.http.mime
 
BrowserUtils() - Constructor for class com.atlassian.http.mime.BrowserUtils
 

C

com.atlassian.http.method - package com.atlassian.http.method
 
com.atlassian.http.mime - package com.atlassian.http.mime
 
com.atlassian.http.url - package com.atlassian.http.url
 
ContentDispositionHeaderGuesser - Class in com.atlassian.http.mime
This class can sniff a file according to the current settings specified by the MimeSNiffPolicyProvider and determine how raw files should be handled.
ContentDispositionHeaderGuesser(DownloadPolicyProvider, HostileExtensionDetector) - Constructor for class com.atlassian.http.mime.ContentDispositionHeaderGuesser
 

D

DownloadHeaderHelper - Class in com.atlassian.http.mime
This class can be used to retrieve what HTTP headers and values should be sent on a given download.
DownloadHeaderHelper(ContentDispositionHeaderGuesser, String, String, String) - Constructor for class com.atlassian.http.mime.DownloadHeaderHelper
 
DownloadHeaderHelper(String, String, String) - Constructor for class com.atlassian.http.mime.DownloadHeaderHelper
 
DownloadPolicy - Enum in com.atlassian.http.mime
Possible policies
DownloadPolicyProvider - Interface in com.atlassian.http.mime
Provides a way to get the policy.

E

equals(Object) - Method in class com.atlassian.http.mime.UserAgentUtil.Browser
 
equals(Object) - Method in class com.atlassian.http.mime.UserAgentUtil.OperatingSystem
 
equals(Object) - Method in class com.atlassian.http.mime.UserAgentUtil.UserAgent
 

G

getBrowser() - Method in class com.atlassian.http.mime.UserAgentUtil.UserAgent
 
getBrowserFamily() - Method in class com.atlassian.http.mime.UserAgentUtil.Browser
 
getBrowserFamily() - Method in enum com.atlassian.http.mime.UserAgentUtil.BrowserMajorVersion
 
getBrowserFamily(String) - Method in interface com.atlassian.http.mime.UserAgentUtil
Returns the BrowserFamily for the given userAgent.
getBrowserFamily(String) - Method in class com.atlassian.http.mime.UserAgentUtilImpl
 
getBrowserMajorVersion() - Method in class com.atlassian.http.mime.UserAgentUtil.Browser
 
getBrowserMinorVersion() - Method in class com.atlassian.http.mime.UserAgentUtil.Browser
 
getContentDisposition() - Method in class com.atlassian.http.mime.DownloadHeaderHelper
 
getContentType() - Method in class com.atlassian.http.mime.DownloadHeaderHelper
 
getDownloadHeaders() - Method in class com.atlassian.http.mime.DownloadHeaderHelper
 
getMinorVersionPrefix() - Method in enum com.atlassian.http.mime.UserAgentUtil.BrowserMajorVersion
 
getOperatingSystem() - Method in class com.atlassian.http.mime.UserAgentUtil.UserAgent
 
getOperatingSystemFamily() - Method in class com.atlassian.http.mime.UserAgentUtil.OperatingSystem
 
getPolicy() - Method in interface com.atlassian.http.mime.DownloadPolicyProvider
 
getUserAgentInfo(String) - Method in interface com.atlassian.http.mime.UserAgentUtil
 
getUserAgentInfo(String) - Method in class com.atlassian.http.mime.UserAgentUtilImpl
 
getUserAgentString() - Method in enum com.atlassian.http.mime.UserAgentUtil.BrowserFamily
 
getUserAgentString() - Method in enum com.atlassian.http.mime.UserAgentUtil.BrowserMajorVersion
 
getUserAgentString() - Method in enum com.atlassian.http.mime.UserAgentUtil.OperatingSystem.OperatingSystemFamily
 
getVersionPos() - Method in enum com.atlassian.http.mime.UserAgentUtil.BrowserMajorVersion
 
guessContentDispositionHeader(String, String, String) - Method in class com.atlassian.http.mime.ContentDispositionHeaderGuesser
This will suggest a content disposition type (inline or attachment) for the given file, respecting the settings given by the provided download policy.
guessMIME(String, String, String) - Method in class com.atlassian.http.mime.ContentDispositionHeaderGuesser
Deprecated.
since 0.0.8 use ContentDispositionHeaderGuesser.guessMIME(String, boolean) instead Given a filename, its MIME type, and a browser user agent, return a 'safe' mime type, depending on the download policy configured, such that 'safe' browsers can display the executable text file without causing xss issues.

If the download policy is set to DownloadPolicy.Secure or DownloadPolicy.Insecure, then the given mimeContentType will be returned.

If the download policy is set to DownloadPolicy.Smart, and the user agent is not Internet Explorer , then for text files that can be displayed in plain text (e.g., text/html, as determined by HostileExtensionDetector.isTextContentType(String) and HostileExtensionDetector.isTextExtension(String)), a 'text/plain' mime type will be returned instead of the given mimeContentType.

guessMIME(String, boolean) - Method in class com.atlassian.http.mime.ContentDispositionHeaderGuesser
Given a mimeContentType and whether the file is a binary file or not returns text/plain for non-binary files and the given mimeContentType is returned.

H

hashCode() - Method in class com.atlassian.http.mime.UserAgentUtil.Browser
 
hashCode() - Method in class com.atlassian.http.mime.UserAgentUtil.OperatingSystem
 
hashCode() - Method in class com.atlassian.http.mime.UserAgentUtil.UserAgent
 
HostileExtensionDetector - Class in com.atlassian.http.mime
A tool for loading and encapsulating the local policy for which MIME Content Types and file extensions may contain active executable client-side content and which therefore should be treated carefully to avoid XSS attacks via uploading these files as attachments.
HostileExtensionDetector() - Constructor for class com.atlassian.http.mime.HostileExtensionDetector
Loads the configuration of what are executable file extensions and content types from the given properties

I

isExecutableContent(String, String) - Method in class com.atlassian.http.mime.HostileExtensionDetector
Determines if the file is executable given its file name and content type.
isExecutableContentType(String) - Method in class com.atlassian.http.mime.HostileExtensionDetector
Determines if the given String contains a substring of a MIME Content Type denoting client-executable active content such that if the browser opens the file, its execution could have access to the browser DOM etc.
isExecutableFileExtension(String) - Method in class com.atlassian.http.mime.HostileExtensionDetector
Determines if the given String has an extension denoting a client-executable active content type such that if the browser opens the file, its execution could have access to the browser DOM etc.
isIE(String) - Static method in class com.atlassian.http.mime.BrowserUtils
 
isIE8OrGreater(String) - Static method in class com.atlassian.http.mime.BrowserUtils
 
isMutative(String) - Static method in class com.atlassian.http.method.Methods
 
isSameOrigin(URL, URL) - Static method in class com.atlassian.http.url.SameOrigin
 
isSameOrigin(URI, URI) - Static method in class com.atlassian.http.url.SameOrigin
 
isTextContent(String, String) - Method in class com.atlassian.http.mime.HostileExtensionDetector
 
isTextContentType(String) - Method in class com.atlassian.http.mime.HostileExtensionDetector
 
isTextExtension(String) - Method in class com.atlassian.http.mime.HostileExtensionDetector
 

M

Methods - Class in com.atlassian.http.method
This class contains functions that can be used to obtain information about http methods.
Methods() - Constructor for class com.atlassian.http.method.Methods
 

O

OperatingSystem(UserAgentUtil.OperatingSystem.OperatingSystemFamily) - Constructor for class com.atlassian.http.mime.UserAgentUtil.OperatingSystem
 

S

SameOrigin - Class in com.atlassian.http.url
This class can be used to check if two URLs are in the same origin.
SameOrigin() - Constructor for class com.atlassian.http.url.SameOrigin
 

T

toString() - Method in class com.atlassian.http.mime.UserAgentUtil.Browser
 
toString() - Method in class com.atlassian.http.mime.UserAgentUtil.OperatingSystem
 
toString() - Method in class com.atlassian.http.mime.UserAgentUtil.UserAgent
 

U

UserAgent(UserAgentUtil.Browser, UserAgentUtil.OperatingSystem) - Constructor for class com.atlassian.http.mime.UserAgentUtil.UserAgent
 
UserAgentUtil - Interface in com.atlassian.http.mime
Utility class for sniffer UserAgents
UserAgentUtil.Browser - Class in com.atlassian.http.mime
 
UserAgentUtil.BrowserFamily - Enum in com.atlassian.http.mime
 
UserAgentUtil.BrowserMajorVersion - Enum in com.atlassian.http.mime
 
UserAgentUtil.OperatingSystem - Class in com.atlassian.http.mime
 
UserAgentUtil.OperatingSystem.OperatingSystemFamily - Enum in com.atlassian.http.mime
 
UserAgentUtil.UserAgent - Class in com.atlassian.http.mime
 
UserAgentUtilImpl - Class in com.atlassian.http.mime
Default Implementation for Sniffing User Agents.
UserAgentUtilImpl() - Constructor for class com.atlassian.http.mime.UserAgentUtilImpl
 

V

valueOf(String) - Static method in enum com.atlassian.http.mime.DownloadPolicy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.atlassian.http.mime.UserAgentUtil.BrowserFamily
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.atlassian.http.mime.UserAgentUtil.BrowserMajorVersion
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.atlassian.http.mime.UserAgentUtil.OperatingSystem.OperatingSystemFamily
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.atlassian.http.mime.DownloadPolicy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.atlassian.http.mime.UserAgentUtil.BrowserFamily
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.atlassian.http.mime.UserAgentUtil.BrowserMajorVersion
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.atlassian.http.mime.UserAgentUtil.OperatingSystem.OperatingSystemFamily
Returns an array containing the constants of this enum type, in the order they are declared.
B C D E G H I M O S T U V 
Skip navigation links

Copyright © 2018 Atlassian. All rights reserved.