Skip to content

Commit

Permalink
Cleanup for Maven release.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed May 2, 2017
1 parent c0b2d65 commit e591ab3
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 72 deletions.
68 changes: 37 additions & 31 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.sinistral</groupId>
<artifactId>proteus-core</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version>
<name>proteus core</name>
<description>Proteus is an extremely light, fast, and flexible Java REST API framework built atop Undertow.</description>
<url>http://github.com/noboomu/proteus</url>
Expand Down Expand Up @@ -53,7 +53,36 @@
</testResources>
<pluginManagement>
<plugins>
<plugin>

<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<versionRange>[3.3,)</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
Expand Down Expand Up @@ -121,34 +150,7 @@
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<versionRange>[3.3,)</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
Expand Down Expand Up @@ -330,14 +332,18 @@
<dependency>
<groupId>io.sinistral</groupId>
<artifactId>jsoniter</artifactId>
<version>0.9.9-SNAPSHOT</version>
<version>0.9.9</version>
</dependency>
</dependencies>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

</project>
36 changes: 6 additions & 30 deletions src/main/java/io/sinistral/proteus/server/ServerRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
import io.undertow.util.Headers;
import io.undertow.util.MalformedMessageException;

/**
*
* @author jbauer
*
*/
public class ServerRequest
{
private static Logger log = LoggerFactory.getLogger(ServerRequest.class.getCanonicalName());
Expand Down Expand Up @@ -114,9 +119,7 @@ public InetSocketAddress getDestinationAddress()
{
return exchange.getDestinationAddress();
}

// ChainedHandlerWrapper


/**
* @return
* @see io.undertow.server.HttpServerExchange#getQueryParameters()
Expand Down Expand Up @@ -173,33 +176,6 @@ private void extractBytes() throws IOException
throw new IOException(e);
}

// else
// {
// this.exchange.startBlocking();
//
// InputStream is = exchange.getInputStream();
// if (is != null) {
//
// try
// {
// if (is.available() != -1) {
//
// try(Scanner scanner = new Scanner(is, "UTF-8"))
// {
// String s = scanner.useDelimiter("\\A").next();
// s = s.trim();
// this.exchange.putAttachment(BYTE_BUFFER_KEY, ByteBuffer.wrap(s.getBytes()));
// }
//
// }
//
// } catch (IOException e) {
// log.error("IOException: ", e);
// }
//
// }
// }

}

private void parseMultipartForm() throws IOException
Expand Down
13 changes: 2 additions & 11 deletions src/main/java/io/sinistral/proteus/services/SwaggerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ public class SwaggerService extends BaseService implements Supplier<RoutingHan

protected ClassLoader serviceClassLoader = null;

/**
* @param config
*/

public SwaggerService( )
{
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Expand Down Expand Up @@ -204,20 +202,13 @@ public void generateSwaggerSpec()

}




/**
* @return the swagger
*/
public Swagger getSwagger()
{
return swagger;
}

/**
* @param swagger the swagger to set
*/

public void setSwagger(Swagger swagger)
{
this.swagger = swagger;
Expand Down
Binary file modified src/test/resources/data/video.mp4
Binary file not shown.

0 comments on commit e591ab3

Please sign in to comment.