Skip to content

Commit

Permalink
JavaDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
augustd committed Jan 24, 2018
1 parent fbddf86 commit 5c81252
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/main/java/burp/impl/Cookie.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@ public Cookie(ICookie cookie) {
/**
* Parses a cookie from a String containing the raw HTTP response header
* _value_ (Minus "Set-Cookie:").
* The first line of input is
* save in the protected <tt>command</tt> variable. The subsequent lines are
* put into a linked hash as field/value pairs. Input is parsed until a
* blank line is reached, after which any data should appear.
*
* @param rawCookie A String containing the raw cookie
* @return A Cookie object parsed from the raw cookie string
* @throws ParseException if the cookie does not have at least a name
*/
public static Cookie parseCookie(String rawCookie) throws ParseException {
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/burp/impl/Parameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public Parameter(String name, String value) {
* Used to explicitly create a multipart parameter. Automatically sets the
* type attribute to IParameter.PARAM_MULTIPART_ATTR.
*
* @param name
* @param value
* @param filename
* @param contentType
* @param name HTTP parameter name
* @param value HTTP parameter value
* @param filename Filename for HTTP Multipart parameter
* @param contentType Content-Type for HTTP Multipart parameter
*/
public Parameter(String name, String value, String filename, String contentType) {
this.name = name;
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/codemagi/burp/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ public static List<String> getFileAsLines(String sFileName) throws Exception {
*
* @param file File to read.
* @return String The contents of the file as a String.
* @throws Exception Any fileIO errors
* @throws java.io.FileNotFoundException If the input file cannot be found
* @throws java.io.IOException If other I/O errors occur
*/
public static String getFileAsString(File file) throws FileNotFoundException, IOException {
byte[] inputbytes;
Expand Down
65 changes: 65 additions & 0 deletions untitled folder/Parameter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Copyright 2017 augustd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package burp.impl;

import burp.IParameter;

/**
*
* @author august
*/
public class Parameter implements IParameter {

private byte type;
private String name;
private String value;

@Override
public byte getType() {
return type;
}

@Override
public String getName() {
return name;
}

@Override
public String getValue() {
return value;
}

@Override
public int getNameStart() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public int getNameEnd() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public int getValueStart() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

@Override
public int getValueEnd() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}

}

0 comments on commit 5c81252

Please sign in to comment.