diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-05 14:49:11 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-04-09 10:03:25 -0500 |
commit | 7c7b9d023cd466c1771068badc020dab36beb553 (patch) | |
tree | 178877eb83e25336be7577953945fbdb0b9e1a15 /base/silent/src/com/netscape/pkisilent/http | |
parent | da1e6e2f49f66fd46c8039ff1aa4386309fba8f4 (diff) | |
download | pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.gz pki-7c7b9d023cd466c1771068badc020dab36beb553.tar.xz pki-7c7b9d023cd466c1771068badc020dab36beb553.zip |
Removed whitespaces from Java code.
Whitespaces in Java code have been removed with the following command:
find . -not -path .git -name *.java -exec sed -i 's/[[:blank:]]\+$//' {} \;
Ticket #134
Diffstat (limited to 'base/silent/src/com/netscape/pkisilent/http')
3 files changed, 32 insertions, 32 deletions
diff --git a/base/silent/src/com/netscape/pkisilent/http/HTMLDocument.java b/base/silent/src/com/netscape/pkisilent/http/HTMLDocument.java index e8de29081..75610c15b 100644 --- a/base/silent/src/com/netscape/pkisilent/http/HTMLDocument.java +++ b/base/silent/src/com/netscape/pkisilent/http/HTMLDocument.java @@ -103,7 +103,7 @@ public class HTMLDocument { /** * Creates a new HTML document using the provided data. - * + * * @param documentURL The URL for this document. * @param htmlData The actual data contained in the HTML document. */ @@ -169,7 +169,7 @@ public class HTMLDocument { /** * Actually parses the HTML document and extracts useful elements from it. - * + * * @return <CODE>true</CODE> if the page could be parsed successfully, or <CODE>false</CODE> if not. */ public boolean parse() { @@ -456,9 +456,9 @@ public class HTMLDocument { * Converts the provided URI to a URL. The provided URI may be a URL already, * or it may also be an absolute path on the server or a path relative to the * base URL. - * + * * @param uri The URI to convert to a URL. - * + * * @return The URL based on the provided URI. */ private String uriToURL(String uri) { @@ -479,7 +479,7 @@ public class HTMLDocument { /** * Retrieves the URL of this HTML document. - * + * * @return The URL of this HTML document. */ public String getDocumentURL() { @@ -488,7 +488,7 @@ public class HTMLDocument { /** * Retrieves the original HTML data used to create this document. - * + * * @return The orginal HTML data used to create this document. */ public String getHTMLData() { @@ -497,7 +497,7 @@ public class HTMLDocument { /** * Retrieves the contents of the HTML document with all tags removed. - * + * * @return The contents of the HTML document with all tags removed, or <CODE>null</CODE> if a problem occurs while * trying to parse the * HTML. @@ -517,7 +517,7 @@ public class HTMLDocument { * that reference files that would normally be downloaded as part of * retrieving a page in a browser. This includes images and external style * sheets. - * + * * @return An array containing a set of URLs to files associated with the * HTML document, or <CODE>null</CODE> if a problem occurs while * trying to parse the HTML. @@ -537,7 +537,7 @@ public class HTMLDocument { /** * Retrieves an array containing a set of URLs parsed from the HTML document * that are in the form of links to other content. - * + * * @return An array containing a set of URLs parsed from the HTML document * that are in the form of links to other content, or <CODE>null</CODE> if a problem occurs while trying to * parse the @@ -558,7 +558,7 @@ public class HTMLDocument { /** * Retrieves an array containing a set of URLs parsed from the HTML document * that reference images used in the document. - * + * * @return An array containing a set of URLs parsed from the HTML document * that reference images used in the document. */ @@ -577,7 +577,7 @@ public class HTMLDocument { /** * Retrieves an array containing a set of URLs parsed from the HTML document * that reference frames used in the document. - * + * * @return An array containing a set of URLs parsed from the HTML document * that reference frames used in the document. */ diff --git a/base/silent/src/com/netscape/pkisilent/http/HTTPClient.java b/base/silent/src/com/netscape/pkisilent/http/HTTPClient.java index f3980c0ed..6331783b8 100644 --- a/base/silent/src/com/netscape/pkisilent/http/HTTPClient.java +++ b/base/silent/src/com/netscape/pkisilent/http/HTTPClient.java @@ -138,7 +138,7 @@ public class HTTPClient implements SSLCertificateApprovalCallback { public boolean approve(X509Certificate cert, SSLCertificateApprovalCallback.ValidityStatus status) { - // when this method is called by SSLSocket we get the server cert + // when this method is called by SSLSocket we get the server cert // we can capture this for future use. server_cert = cert; return true; @@ -794,7 +794,7 @@ public class HTTPClient implements SSLCertificateApprovalCallback { /** * Reads the actual data of the response based on the content length provided * by the server in the response header. - * + * * @param response The response with which the data is associated. * @param inputStream The input stream from which to read the response. * @param contentLength The number of bytes that the server said are in the @@ -808,7 +808,7 @@ public class HTTPClient implements SSLCertificateApprovalCallback { * array that should be considered part of the * response (the number of header bytes is included in * this count). - * + * * @throws IOException If a problem occurs while reading data from the * server. */ @@ -853,7 +853,7 @@ public class HTTPClient implements SSLCertificateApprovalCallback { * Reads the actual data of the response using chunked encoding, which is a * way for the server to provide the data in several chunks rather than all at * once. - * + * * @param response The response with which the data is associated. * @param inputStream The input stream from which to read the response. * @param dataRead The data that we have already read. This includes @@ -865,7 +865,7 @@ public class HTTPClient implements SSLCertificateApprovalCallback { * array that should be considered part of the * response (the number of header bytes is included in * this count). - * + * * @throws IOException If a problem occurs while reading data from the * server. */ @@ -1166,13 +1166,13 @@ public class HTTPClient implements SSLCertificateApprovalCallback { if (auth_type != null && auth_type.equalsIgnoreCase("BASIC")) { // BASE64Encoder encoder = new BASE64Encoder(); - // String temp = encoder.encodeBuffer((user_id + + // String temp = encoder.encodeBuffer((user_id + // ":" + user_password).getBytes()); String temp = Utils.base64encode((user_id + ":" + user_password).getBytes()); - // note: temp already contains \r and \n. - // remove \r and \n from the base64 encoded string. + // note: temp already contains \r and \n. + // remove \r and \n from the base64 encoded string. // causes problems when sending http post requests // using PrintStream.println() diff --git a/base/silent/src/com/netscape/pkisilent/http/HTTPResponse.java b/base/silent/src/com/netscape/pkisilent/http/HTTPResponse.java index 9ade1c133..f8073f7bc 100644 --- a/base/silent/src/com/netscape/pkisilent/http/HTTPResponse.java +++ b/base/silent/src/com/netscape/pkisilent/http/HTTPResponse.java @@ -60,7 +60,7 @@ public class HTTPResponse { /** * Creates a new HTTP response with the provided status code. - * + * * @param statusCode The HTTP status code for this response. * @param protocolVersion The protocol and version for this response. * @param responseMessage The message associated with this response. @@ -84,7 +84,7 @@ public class HTTPResponse { /** * Retrieves the status code for this HTTP response. - * + * * @return The status code for this HTTP response. */ public int getStatusCode() { @@ -93,7 +93,7 @@ public class HTTPResponse { /** * Retrieves the protocol version for this HTTP response. - * + * * @return The protocol version for this HTTP response. */ public String getProtocolVersion() { @@ -102,7 +102,7 @@ public class HTTPResponse { /** * Retrieves the response message for this HTTP response. - * + * * @return The response message for this HTTP response. */ public String getResponseMessage() { @@ -113,7 +113,7 @@ public class HTTPResponse { * Retrieves the value of the header with the specified name. If the * specified header has more than one value, then only the first will be * retrieved. - * + * * @return The value of the header with the specified name, or <CODE>null</CODE> if no such header is available. */ public String getHeader(String headerName) { @@ -130,7 +130,7 @@ public class HTTPResponse { /** * Retrieves the set of values for the specified header. - * + * * @return The set of values for the specified header. */ public String[] getHeaderValues(String headerName) { @@ -150,7 +150,7 @@ public class HTTPResponse { /** * Adds a header with the given name and value to this response. - * + * * @param headerName The name of the header to add to this response. * @param headerValue The value of the header to add to this response. */ @@ -174,7 +174,7 @@ public class HTTPResponse { /** * Retrieves a two-dimensional array containing the header data for this * response, with each element being an array containing a name/value pair. - * + * * @return A two-dimensional array containing the header data for this * response. */ @@ -191,7 +191,7 @@ public class HTTPResponse { /** * Retrieves the raw data included in this HTTP response. If the response did * not include any data, an empty array will be returned. - * + * * @return The raw data included in this HTTP response. */ public byte[] getResponseData() { @@ -255,7 +255,7 @@ public class HTTPResponse { /** * Sets the actual data associated with this response. - * + * * @param responseData The actual data associated with this response. */ public void setResponseData(byte[] responseData) { @@ -268,7 +268,7 @@ public class HTTPResponse { /** * Retrieves the content length associated with this response. - * + * * @return The content length associated with this response, or -1 if no * content length is available. */ @@ -278,7 +278,7 @@ public class HTTPResponse { /** * Retrieves the content type associated with this response. - * + * * @return The content type associated with this response, or <CODE>null</CODE> if no content type is available. */ public String getContentType() { @@ -288,7 +288,7 @@ public class HTTPResponse { /** * Retrieves an array containing the values of the cookies that should be set * based on the information in this response. - * + * * @return An array containing the values of the cookies that should be set * based on the information in this response. */ |